This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: --unresolved-symbols patch breaks autoconf tests
- From: Nick Clifton <nickc at redhat dot com>
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 02 Oct 2003 10:41:47 +0100
- Subject: Re: --unresolved-symbols patch breaks autoconf tests
- References: <16235.21190.636525.427919@xayide.TechFak.Uni-Bielefeld.DE>
Hi Rainer,
> $ cat nosf.c
> int
> main (void)
> {
> return nosuchfunction();
> }
> $ gcc -c nosf.c
> $ ./xgcc -B./ -v -o nosf nosf.o
> Reading specs from ./specs
> Configured with: '/home/ro/build/gcc/gcc/configure' '--prefix=/home/ro '--disable-nls '--with-gnu-as '--with-as=/home/ro/bin/gas-2.14.90 '--with-gnu-ld '--with-ld=/home/ro/bin/gld-2.14.90
> Thread model: single
> gcc version 3.4 20030909 (experimental)
> ./collect2 -call_shared -init __do_global_ctors -fini __do_global_dtors -melf32bsmip -o nosf /usr/lib/crt1.o ./crtbegin.o -L. -L/home/ro/lib/../mips-sgi-irix5.3/lib -L/home/ro/lib nosf.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh ./crtend.o /usr/lib/crtn.o
> nosf.o(.text+0x10): In function `main':
> nosf.c:1: undefined reference to `nosuchfunction'
> collect2: ld returned 1 exit status
> $ echo $?
> 0
[Sorry for the delay in replying - I have been on vacation]
Does this problem still exist for you ?
I tried building using the latest gcc and binutils sources and it
appears to work:
% ../gcc/xgcc -B ../gcc/ nosf.o
nosf.o(.text+0x11): In function `main':
: undefined reference to `nosuchfunction'
collect2: ld returned 1 exit status
% echo $?
1
Cheers
Nick