This is the mail archive of the binutils@sources.redhat.com 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: --unresolved-symbols patch breaks autoconf tests


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
        


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