Skip to contentSkip to conversation

powerpc/32: Add .data.rel* sections explicitly

PATCH Applied Nicholas Piggin 2 participants 2 messages Nov 13, 2017 – Dec 12, 2017 PowerPC

lore
Share & tools
lore

Nicholas Piggin

author reviewer
#0 lore raw

PATCH 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'.

---
 arch/powerpc/kernel/vmlinux.lds.S | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/kernel/vmlinux.lds.S +1 -0
index 0494e1566ee2..51e4ec92ade1 100644
@@ -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
#1 lore raw
Quoted 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' from arch/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