This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Failed build of GLIBC for MIPS...
- To: "Gabor Z. Papp" <gzp at myhost dot mynet>
- Subject: Re: Failed build of GLIBC for MIPS...
- From: Andreas Jaeger <aj at suse dot de>
- Date: 08 Mar 2001 17:22:35 +0100
- Cc: binutils at sources dot redhat dot com, "Steven J. Hill" <sjhill at cotw dot com>
- References: <m2u26gxiet.fsf@dejima.jp.tlan> <3AA7A540.16382045@cotw.com><3b8.3aa7a694.c238a@news.myhost.mynet>
"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