Re: Shared Objects

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

 



Dave,
Position-indepent code is what I am wondering about. I assume the shared 
object is loaded from disk when it is needed. How does the calling 
program know where it is?
Thanks.
John
On Thu, 12 Sep 2002, Dave Mielke wrote:

> [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.
> 
> 

-- 
Computers to Help People, Inc.
http://www.chpi.org
825 East Johnson; Madison, WI 53703




_______________________________________________

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]