gc-sections and DWARF ranges

Cary Coutant ccoutant@google.com
Fri Oct 22 17:51:00 GMT 2010


>> Is there any provision in GNU ld for this that I'm not seeing?  We
>> ought to remove discarded entries with knowledge of the .debug_ranges
>> output; I don't see how we can get this right otherwise.
>
> Isn't this ideally handled with section groups?

Yes, it is, but I think gcc is a long way from being able to emit
debug info as part of a comdat group. I think other binutils tools
(readelf, objdump) may also need some work in order to handle
relocatable objects with several sets of debug sections.

-cary



More information about the Binutils mailing list