This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fixing MIPS target under GLIBC....
- To: "Steven J. Hill" <sjhill at cotw dot com>
- Subject: Re: Fixing MIPS target under GLIBC....
- From: "H . J . Lu" <hjl at gnu dot org>
- Date: Wed, 14 Mar 2001 21:33:07 -0800
- Cc: libc-alpha at sources dot redhat dot com, gcc at gcc dot gnu dot org
- References: <3AAFA00B.1B65C4EB@cotw.com>
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.