hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/kernel/vmlinux.lds.S
....@@ -8,6 +8,7 @@
88 #define BSS_FIRST_SECTIONS *(.bss.prominit)
99 #define EMITS_PT_NOTE
1010 #define RO_EXCEPTION_TABLE_ALIGN 0
11
+#define RUNTIME_DISCARD_EXIT
1112
1213 #include <asm/page.h>
1314 #include <asm-generic/vmlinux.lds.h>
....@@ -382,9 +383,12 @@
382383 DISCARDS
383384 /DISCARD/ : {
384385 *(*.EMB.apuinfo)
385
- *(.glink .iplt .plt .rela* .comment)
386
+ *(.glink .iplt .plt .comment)
386387 *(.gnu.version*)
387388 *(.gnu.attributes)
388389 *(.eh_frame)
390
+#ifndef CONFIG_RELOCATABLE
391
+ *(.rela*)
392
+#endif
389393 }
390394 }