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
<sourceware-bugzi...@sourceware.org> 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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to