kernel/arch/powerpc/kernel/vmlinux.lds.S
.. .. @@ -8,6 +8,7 @@ 8 8 #define BSS_FIRST_SECTIONS *(.bss.prominit) 9 9 #define EMITS_PT_NOTE 10 10 #define RO_EXCEPTION_TABLE_ALIGN 0 11 +#define RUNTIME_DISCARD_EXIT11 12 12 13 #include <asm/page.h> 13 14 #include <asm-generic/vmlinux.lds.h> .. .. @@ -382,9 +383,12 @@ 382 383 DISCARDS 383 384 /DISCARD/ : { 384 385 *(*.EMB.apuinfo) 385 - *(.glink .iplt .plt .rela* .comment)386 + *(.glink .iplt .plt .comment)386 387 *(.gnu.version*) 387 388 *(.gnu.attributes) 388 389 *(.eh_frame) 390 +#ifndef CONFIG_RELOCATABLE391 + *(.rela*)392 +#endif389 393 } 390 394 }