[PATCH] handle stabs line numbers outside functions

Bob Wilson bwilson@tensilica.com
Wed Feb 12 21:59:00 GMT 2003


When GAS emits a stabs entry for a line number inside a function, it uses the 
address relative to the start of the function.  If GAS doesn't know that the 
line is within a particular function, it emits an absolute address.  The 
current stabs-reading code in binutils always subtracts the current function 
offset, which gives bad results if GAS emitted the stab with an absolute 
address.  This patch enables the binutils stabs code to read both kinds of 
line number stabs that GAS produces.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-stabs.diff
Type: text/x-diff
Size: 848 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20030212/d1889bee/attachment.bin>


More information about the Binutils mailing list