bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/18440] ICF depends on the section name to detect constructors


From: tmsriram at google dot com
Subject: [Bug gold/18440] ICF depends on the section name to detect constructors and destructors
Date: Fri, 22 May 2015 22:58:31 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18440

--- Comment #3 from Sriraman Tallam <tmsriram at google dot com> ---
On Thu, May 21, 2015 at 5:16 AM, rafael.espindola at gmail dot com
<address@hidden> wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=18440
>
> --- Comment #2 from Rafael Ávila de Espíndola <rafael.espindola at gmail dot 
> com> ---
>> > This unfortunately doesn't work if the compiler avoids producing the long
>> > section names (as llvm now can).
>>
>> Can we use the symbol name directly?
>
> That would be nice. Which is why I asked:
>
>> > Is there a convenient pass over the symbols that could be used for this
>> > instead?
>
> Looks like there is, could we use the walk done from
> Symbol_table::add_from_relob to check if a section has just a constructor in
> it? We already use that walk to mark symbols as gc roots.

I agree, just like gc_mark_symbol, you could call mark_ctor_or_dtor(sym).

Sri

>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.

-- 
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]