This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Problems generating shared library for MIPS using binutils-2.13...
- From: "Steven J. Hill" <sjhill at realitydiluted dot com>
- To: linux-mips at linux-mips dot org
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 25 Oct 2002 11:38:25 -0500
- Subject: Problems generating shared library for MIPS using binutils-2.13...
Greetings.
I'm doing something stupid here, so please help me out. I am trying
to create a shared library with gcc passing parameters to the linker
and it is not working.
I compiled all the object files with '-mips2' and then I attempt to
create the shared library with:
mipsel-linux-gcc -shared -Wl,-Amips2,-soname,libz.so.1 \
-o libz.so.1.1.4 adler32.o compress.o crc32.o gzio.o \
uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o \
inftrees.o infcodes.o infutil.o inffast.o
The object files are all mips2, but the generated '.so' object
is mips1?! What am I not understanding? I am using binutils-2.13,
gcc-3.2 and uClibc-0.9.15. The use of uClibc is not the problem.
-Steve