This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Relaxation and .debug_loc section
- From: Andreas Schwab <schwab at suse dot de>
- To: Michael Eager <eager at eagercon dot com>
- Cc: binutils at sourceware dot org
- Date: Sat, 14 Jul 2007 09:41:27 +0200
- Subject: Re: Relaxation and .debug_loc section
- References: <469803B7.8090500@eagercon.com>
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.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."