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...


* 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.

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.


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