bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/20062] Gold2.26 fail to link Uefi firmware with internal error


From: ccoutant at gmail dot com
Subject: [Bug gold/20062] Gold2.26 fail to link Uefi firmware with internal error in do_layout, but ld works
Date: Fri, 20 May 2016 01:17:59 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]