This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld error message %C format
On Wed, May 18, 2011 at 8:47 AM, Alan Modra <amodra@gmail.com> wrote:
> How do people feel about extending typical linker error messages like
> the following
> ? ? ? ?tmpdir/dump0.o: In function `foo':
> ? ? ? ?./compressed1.c:13: undefined reference to `bar'
> to always include the section and offset information?
> ? ? ? ?tmpdir/dump0.o: In function `foo':
> ? ? ? ?./compressed1.c:13:(.text+0x8): undefined reference to `bar'
>
> When debugging toolchain problems, the section and offset is often
> more useful than the source information. ?I've checked that this
> change doesn't seem to break emacs parsing of error messages.
>
> ? ? ? ?* ldmisc.c (vfinfo <%C>): Always print section+offset.
>
I like it.
Thanks.
--
H.J.