This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: line number missing in get_nearest_line
On Thu, Feb 21, 2002 at 01:28:51AM -0800, Eric Christopher wrote:
>
> > After some tests on many systems, I checked out that
> > it depend of the gcc version.
> > With 2.95.2 or lower, it seems to be right,
> > with 2.95.3-5 it don't work,
> > with 2.95.6 it's right.
> >
> > I was not able to test it with gcc V3+ because '-g' flag
> > is refused on my version.
> >
> > This trouble happend for any version of binutils and for the given
> > gcc versions.
>
> Sounds like a compiler bug (though I don't know why the -g flag was
> refused - where'd you get your compiler from?) that appears it has been
> fixed now (or at least was as of 2.95.6).
Could this be the same bug that prevents
nm --line-numbers from producing sensible output?
I can confirm that it worked with gcc 2.95.2 (can't remember
the binutils version, but it was SuSE 7.0).
It does not work with gcc-2.95.4 20011002 from Debian unstable.
It works with gcc-3.0.4 20020209 from Debian unstable.
Regards,
Johannes