This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gc-sections and DWARF ranges
>> 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