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: gc-sections and DWARF ranges


On Fri, Oct 22, 2010 at 08:40:22AM -0700, Richard Henderson wrote:
> On 10/21/2010 02:41 PM, Daniel Jacobowitz wrote:
> > 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.  You'd have to generate a separate DW_TAG_compile_unit to go
along with each function; GDB gets confused when you do that (because
it thinks you have multiple source files with the same name) and a
bunch of tests fail.  But it's basically the right strategy.

-- 
Daniel Jacobowitz
CodeSourcery


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