[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.
- [Bug ld/20062] New: Gold2.26 fail to link Uefi firmware with internal error in do_layout, but ld works, steven.shi at intel dot com, 2016/05/09
- [Bug gold/20062] Gold2.26 fail to link Uefi firmware with internal error in do_layout, but ld works, hjl.tools at gmail dot com, 2016/05/09
- [Bug gold/20062] Gold2.26 fail to link Uefi firmware with internal error in do_layout, but ld works, steven.shi at intel dot com, 2016/05/11
- [Bug gold/20062] Gold2.26 fail to link Uefi firmware with internal error in do_layout, but ld works, steven.shi at intel dot com, 2016/05/14
- [Bug gold/20062] Gold2.26 fail to link Uefi firmware with internal error in do_layout, but ld works, steven.shi at intel dot com, 2016/05/18
- [Bug gold/20062] Gold2.26 fail to link Uefi firmware with internal error in do_layout, but ld works,
ccoutant at gmail dot com <=