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: Relaxation and .debug_loc section


On Sat, Jul 14, 2007 at 08:59:41AM -0700, Michael Eager wrote:
> Andreas Schwab wrote:
> > Michael Eager <eager@eagercon.com> writes:
> >> When the relaxation pass shrinks the code, these offsets
> >> point to the wrong locations.  I've looked through other
> >> targets to see if there is anything which looks like it
> >> fixes up the .debug_loc section after relaxation, but
> >> I haven't found anything.
> > I think if you want to do linker relaxing you have to tell the assembler
> > not to resolve such relocations.
> 
> There's no way to do that.   The offsets are simple expressions.
> The assembler converts them to integer values.

I'm pretty sure there is.  Did you look at the macros Alan suggested?
It looks like only Xtensa relaxes debug info sections, juudging from
the TC_LINKRELAX_FIXUP definition.

-- 
Daniel Jacobowitz
CodeSourcery


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