Reference to .debug_loc

Daniel Berlin dberlin@dberlin.org
Fri Feb 14 20:40:00 GMT 2003


> > >>Or is there another way?
> > >
> > >At a guess it should be like DW_AT_ranges:
> > >        .long   .Ldebug_ranges0+0x0     # DW_AT_ranges
> > >
> > >I.E. dw2_asm_output_offset, rather than dw2_asm_output_delta, in GCC.
> > >
> >
> > It's supposed to be the offset from the beginning of the debug_loc
> > section.
> > Will this do that?
>
> I think so.  The result will be something like .Ldebug_ranges0 +
> (.LLST0-.Ldebug_loc0).  If the assembler won't take that then we'll
> have to track addresses for loclists the same as we do for rangelists.

I'm compiling a compiler that does it right now, i'll post the results.
>
> --
> Daniel Jacobowitz
> MontaVista Software                         Debian GNU/Linux Developer
>



More information about the Gcc mailing list