This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: difference between 32 bit and 64 bit .so
Goswin von Brederlow <goswin-v-b@web.de> writes:
> 2 options to make it work, if non-pic is still worth it on x86_64:
>
> 1) Use 64bit PC relative references.
This is the large model. You can get this from gcc with
-mcmodel=large. Of course, then you are paying a different type of
performance penalty.
> 2) Map objects close together and give runtime (load time) errors only
> in cases where the relative distance actually does exceed 32bit. How
> many binaries exceed 2GB size?
Enough. And you also need to change the default behaviour of the
dynamic linker, since by default they won't be within 32 bits.
Ian