[Issue 12896] ld.gold complains about bad relocations when building libphobos2.so

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 4 11:47:22 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12896

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Martin Nowak <code at dawg.eu> ---
The ld.gold linker is complaining about a bad offset for the fake relocations
added to pin the deh_eh and the minfo section.
Those are 0-sized NONE relocations added to the end of the d_dso_init function.
The gold linker complains, because it thinks there is no space for the
relocation (the section only has 56 bytes) even though it doesn't require any
space.
A simple solution would be to set the relocation offset to 0 (i.e. the begin of
d_dso_init) but there are further issues with --gc-sections and ld.gold which
necessitate a different solution, so reverting is the best option for now.

https://github.com/D-Programming-Language/dmd/pull/3715

--


More information about the Digitalmars-d-bugs mailing list