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: PATCH: PR ld/4986: gas emits duplicate .loc directive from gcc 3.4.6


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


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