bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nonstandard error message from ld


From: Richard Stallman
Subject: Re: Nonstandard error message from ld
Date: Thu, 23 Dec 2004 14:31:37 -0500

    Using the testcase I created the linker produces these error messages 
    before the patch:

       ./libundef.a(undef.o)(.text+0x7): In function `bar':
       undef.c: undefined reference to `foo'
       ./libundef.a(undef.o)(.text+0x19):undef.c: undefined reference to `foo'
       collect2: ld returned 1 exit status

    And these error messages afterwards:

       ./libundef.a(undef.o): In function `bar':
       undef.c:(.text+0x7): undefined reference to `foo'
       undef.c:(.text+0x19): undefined reference to `foo'
       collect2: ld returned 1 exit status

    Is this what you were expecting ?

It solves the problem, yes.

                                       The linker does not have the line 
    numbers available for the bar() function so it uses section-name+offset 
    instead,

How come the line numbers aren't available?  Normally they ought to
be, and the linker ought to show the source line number.  Is this feature
broken?  Or did you do something special so there would be no line
numbers in that file?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]