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: Fix elf_find_function () on a corner case


>ld: warning: cannot find entry symbol _start; defaulting to 08048094
>t.o: In function `aaa':b.c:(.text+0x7): undefined reference to `bar'
>t.o: In function `bbb':b.c:(.text+0x17): undefined reference to `bar'

I wouldn't want to loose the information on the source file, if that
information is available. This makes finding the function easier, and in
case of local functions or multiply defined (weak) ones disambiguates
their origin.

>While we expect it to output:
>
>ld: warning: cannot find entry symbol _start; defaulting to 08048094
>t.o: In function `aaa': undefined reference to `bar'
>t.o: In function `bbb': undefined reference to `bar'

Jan


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