This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Patch: Fix elf_find_function () on a corner case
- From: "Jan Beulich" <JBeulich at novell dot com>
- To: "Jie Zhang" <jzhang918 at gmail dot com>
- Cc: <binutils at sourceware dot org>
- Date: Tue, 22 Nov 2005 09:52:17 -0700
- Subject: Re: Patch: Fix elf_find_function () on a corner case
- References: <438349D5.5090400@gmail.com>
>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