Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Don't bother about .data..Lubsan sections

Since commit 9a427556fb8e ("vmlinux.lds.h: catch compound literals
into data and BSS") .data..Lubsan sections are taken into account
in DATA_MAIN which is included in DATA_DATA macro.

No need to take care of them anymore in powerpc vmlinux.lds.S

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/3eb14570612eef17e01bb67f14a4450136001794.1637840601.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Michael Ellerman
57dd3a7b cdc81aec

-8
-8
arch/powerpc/kernel/vmlinux.lds.S
··· 322 322 #ifdef CONFIG_PPC32 323 323 .data : AT(ADDR(.data) - LOAD_OFFSET) { 324 324 DATA_DATA 325 - #ifdef CONFIG_UBSAN 326 - *(.data..Lubsan_data*) 327 - *(.data..Lubsan_type*) 328 - #endif 329 325 *(.data.rel*) 330 326 *(SDATA_MAIN) 331 327 *(.sdata2) ··· 332 336 #else 333 337 .data : AT(ADDR(.data) - LOAD_OFFSET) { 334 338 DATA_DATA 335 - #ifdef CONFIG_UBSAN 336 - *(.data..Lubsan_data*) 337 - *(.data..Lubsan_type*) 338 - #endif 339 339 *(.data.rel*) 340 340 *(.toc1) 341 341 *(.branch_lt)