This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: gcc shared library init problem (2nd try)


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)

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