powerpc/32: Add .data.rel* sections explicitly
Nicholas Piggin
reviewerPATCH 1/1 powerpc/32: Add .data.rel* sections explicitly
Match powerpc/64 and include .data.rel* input sections in the .data output section explicitly.
This solves the warning:
powerpc-linux-gnu-ld: warning: orphan section .data.rel.ro' from arch/powerpc/kernel/head_44x.o' being placed in section `.data.rel.ro'.
Reported-by kbuild test robot <[email protected]>
Signed-off-by Nicholas Piggin <[email protected]>
--- arch/powerpc/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/kernel/vmlinux.lds.S +1 -0
@@ -264,6 +264,7 @@ SECTIONS #ifdef CONFIG_PPC32 .data : AT(ADDR(.data) - LOAD_OFFSET) { DATA_DATA + *(.data.rel*) *(.sdata) *(.sdata2) *(.got.plt) *(.got)
Signature · 1 line
2.15.0
Michael Ellerman
AppliedQuoted 10 lines · Nicholas Piggin
Match powerpc/64 and include .data.rel* input sections in the .data output section explicitly.
This solves the warning:
powerpc-linux-gnu-ld: warning: orphan section
.data.rel.ro' fromarch/powerpc/kernel/head_44x.o' being placed in section `.data.rel.ro'.
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/a10726075dec4ceb050c2f775e5436
cheers