This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Relocation against discarded sections


Evandro Menezes <evandro@yahoo.com> writes:

>> I have been looking at a similar problem, that according to a colleague is
>> most likely the culprit.  Apparently this is related to an old gcc bug that
>> used to have a workaround in ld (later removed from ld).  It might still be
>> popping up perhaps (or in my case, I'm dealing with a library that I cannot
>> recompile that has been compiled using an older gcc with the bug present).
>
> Can someone please point out the previous work-around in LD?  BTW,
> where are duplicate link-once sections discarded?

For ld (not gold), look for the uses of
_bfd_elf_default_action_discarded and the PRETEND flag that it
returns.

In ld (not gold), duplicate link-once sections are discarded by
_bfd_elf_section_already_linked.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]