Re: Shared Objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[quoted lines by John on September 12, 2002, at 09:16]

>They are created from source using "gcc --shared" (or equivalent for other
>languages) or "ld --shared."

One other point: Since a shared object (not withstanding rare cases) must be
able to be loaded at any address at run time, the compiler must be told to
generate what's known as position independent code. With gcc, this is done with
the -fPIC option.

-- 
Dave Mielke           | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: dave@mielke.cc | Canada  K2A 1H7   | if you're concerned about Hell.
http://familyradio.com



_______________________________________________

Blinux-list@redhat.com
https://listman.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]