ld error message %C format

H.J. Lu hjl.tools@gmail.com
Wed May 18 15:51:00 GMT 2011

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.



More information about the Binutils mailing list