Fixing MIPS target under GLIBC....

H . J . Lu hjl@gnu.org
Wed Mar 14 21:33:00 GMT 2001


On Wed, Mar 14, 2001 at 10:44:59AM -0600, Steven J. Hill wrote:
> /data/build/build-glibc/libc.so.6 /data/build/build-glibc/libc_nonshared.a -lgcc
> `mipsel-linux-gcc --print-file-name=crtend.o` /data/build/build-glibc/csu/crtn.o
> /opt/toolchains/mips/mipsle/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

atexit has been moved to libc_nonshared.a, which is a static archive.
Since -lgcc comes after libc_nonshared.a, libc_nonshared.a is not
searched for the reference to atexit in libgcc.a. I am wondering why
I didn't see it under ia32. I will take a look to see what is going
on. We may have to modify gcc.


H.J.



More information about the Libc-alpha mailing list