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]

Re: Failed build of GLIBC for MIPS...


"Gabor Z. Papp" <gzp@myhost.mynet> writes:

> * Steven J. Hill <sjhill@cotw.com>:
> 
> | /usr/local/mips-le/lib/gcc-lib/mipsel-linux/3.1/libgcc.a(__main.o): In function
> | `no symbol':
> | /data/cvs/gcc/gcc/libgcc2.c(.text+0x18c): undefined reference to `atexit'
> | collect2: ld returned 1 exit status
> 
> Andreas, when it isn't glibc related error, then something
> really wrong with binutils' ld. I have tired with
> 2.10.91.0.4 and 2.10.1, both failed. BTW the binaries have
> the same size.

I'm busy at the moment and can't check it on my MIPS machine at the
moment - but it looks really strange.

> Steven, you must add "-lpthread" to the CFLAGS to link that
> object, because "atexit" is referenced in libpthread.so, and
> someway ld doesn't link it automatically.

atexist should be in libc.so.6:

gee:/src/gcc30:[1]$ nm /lib/libc.so.6  |grep atexit
0002f9b0 T __cxa_atexit
0011674c ? __elf_set___libc_atexit_element__cleanup__
0011674c a __start___libc_atexit
00116750 a __stop___libc_atexit
00119040 b added_atexit_handler.186
0002f970 T atexit

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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