This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -fPIC
- To: Jason Moxham <J dot L dot Moxham at maths dot soton dot ac dot uk>
- Subject: Re: -fPIC
- From: "Petter Wahlman" <pwa at norman dot no>
- Date: Mon, 20 Aug 2001 08:53:03 +0200
- cc: gcc-help at gcc dot gnu dot org
hi!
position independent code (PIC) uses the ebx register to store the address of
the
global offset table (GOT), this register should thus be used with caution.
i belive you'r code references ebx with the "...: "b" (b).." expression.
shared libraries are genarally marginally slower than statically linked libs
because the linker has to dynamically evaluate procedure linkage table entries
(PLT),
and modify the global table offset's memory image accordingly (unless the
LD_BIND_NOW
environment variable is set).
regards
Petter Wahlman