This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc shared library init problem (2nd try)
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: gcc shared library init problem (2nd try)
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Wed, 5 Jul 2000 08:33:39 -0700
Never, ever use
# ld -shared -o libfoo.so t2.o
to create the shared library unless you know what you are doing. Always
use
# gcc -shared -o libfoo.so t2.o
One of those days I will update my ELF paper:
http://ftp.valinux.com/pub/support/hjl/doc/elf.ps.gz
--
H.J. Lu (hjl@gnu.org)