powerpc: Discard .rela* sections if CONFIG_RELOCATABLE is undefined
PATCH 1/1 powerpc: Discard .rela* sections if CONFIG_RELOCATABLE is undefined
arch/powerpc/kernel/vmlinux.lds.S has
DISCARDS
/DISCARD/ : {
*(*.EMB.apuinfo)
*(.glink .iplt .plt .rela* .comment)
*(.gnu.version*)
*(.gnu.attributes)
*(.eh_frame)
}Since .rela* sections are needed when CONFIG_RELOCATABLE is defined, change to discard .rela* sections if CONFIG_RELOCATABLE is undefined.
Signed-off-by H.J. Lu <[email protected]>
--- arch/powerpc/kernel/vmlinux.lds.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
arch/powerpc/kernel/vmlinux.lds.S +4 -1
@@ -366,9 +366,12 @@ SECTIONS DISCARDS /DISCARD/ : { *(*.EMB.apuinfo) - *(.glink .iplt .plt .rela* .comment) + *(.glink .iplt .plt .comment) *(.gnu.version*) *(.gnu.attributes) *(.eh_frame) +#ifndef CONFIG_RELOCATABLE + *(.rela*) +#endif } }
Signature · 1 line
2.25.4
Michael Ellerman
reviewerQuoted 11 lines · H.J. Lu
arch/powerpc/kernel/vmlinux.lds.ShasDISCARDS /DISCARD/ : { *(*.EMB.apuinfo) *(.glink .iplt .plt .rela* .comment) *(.gnu.version*) *(.gnu.attributes) *(.eh_frame) }
Quoted 8 lines
Since .rela* sections are needed when
CONFIG_RELOCATABLEis defined, change to discard .rela* sections ifCONFIG_RELOCATABLEis undefined.Signed-off-by H.J. Lu <[email protected]>--- arch/powerpc/kernel/vmlinux.lds.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Please insert this patch into your series prior to the patch that caused the build break.
cheers
Quoted 20 lines
arch/powerpc/kernel/vmlinux.lds.S +4
-1@@ -366,9 +366,12 @@ SECTIONS DISCARDS /DISCARD/ : { *(*.EMB.apuinfo) - *(.glink .iplt .plt .rela* .comment) + *(.glink .iplt .plt .comment) *(.gnu.version*) *(.gnu.attributes) *(.eh_frame) +#ifndef CONFIG_RELOCATABLE + *(.rela*) +#endif } }Signature · 1 line
2.25.4