PATCH: PR ld/4986: gas emits duplicate .loc directive from gcc 3.4.6

Daniel Jacobowitz drow@false.org
Sun Sep 2 03:14:00 GMT 2007


On Sun, Sep 02, 2007 at 12:02:26PM +0930, Alan Modra wrote:
> On Sat, Sep 01, 2007 at 06:04:14AM -0700, H.J. Lu wrote:
> > Basically we
> > have to remove duplicate .loc entries in linker.
> 
> Eh?  I thought the whole point of Daniel's patch was to keep them.

Mine was a gas patch, to output the duplicates - GDB cares about them.
HJ's is for the dwarf2 reader that addr2line and ld's error messages
use.

ld's only ever interested in the code -> location mapping.  In that
direction, the duplicates aren't useful; the last one from the input
is the only one we need.  The patch looks plausible to me.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list