https://sourceware.org/bugzilla/show_bug.cgi?id=20062
Cary Coutant <ccoutant at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #3 from Cary Coutant <ccoutant at gmail dot com> --- Gold does not currently support the combination of --gc-sections with either -r or --emit-relocs. Unfortunately, we only diagnose with -r, and hit an internal error if --emit-relocs is used. If you remove --gc-sections from the link, we hit another internal error, which is the result of trying to layout the .rela.* sections according to the linker script. It turns out that Gnu ld ignores the .rela directives in the SECTIONS clause, instead writing the output relocations as orphan sections. Gold should do the same. If you also remove the .rela directive from the SECTIONS clause, gold will link successfully, and it makes no difference to Gnu ld. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils