[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: please drop whatever you're doing and add -fPIC to all your rockspecs.
- From: Mikhail Gusarov <dottedmag@...>
- Date: Sun, 28 Feb 2010 00:25:36 +0600
Twas brillig at 19:34:18 27.02.2010 UTC+02 when steve.j.donovan@gmail.com did gyre and gimble:
>> Not only is it sensible, it's essential for properly working shared
>> objects.
sd> Fair enough, but how have we managed to do without it then?
On x86 you'll get a bunch of TEXTREL relocations, so resulting shared
objects will work, but runtime linker will need to modify their .text
segment during load and hence loaded code won't be shared between
processes (such shared objects shouldn't be called "shared" at all :).
On other archituctures you'll get a linker error upfront.
--
http://fossarchy.blogspot.com/
Attachment:
pgpG9PVmvChxe.pgp
Description: PGP signature