site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 27 apr 2006, at 03:03, Jack Howarth wrote: http://lists.debian.org/debian-gcc/2003/10/msg00115.html Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Thanks for the clarification. One other question. Is there anyway to detect if non-PIC code exists in a shared library? I recall some discussion of doing this for Linux... It would be handy if something like this were possible on Darwin. Specifically we could add such checks to 'fink validate' to verify that shared libs haven't been built with non-PIC code. It should be perfectly possibly to build working dynamic libraries without using PIC code. The only difference should be that such libraries cannot be shared among processes (i.e., each process has to load its own copy of the library). From the ld man page: -read_only_relocs treatment Specifies how relocation entries in read-only sections are to be treated when -dynamic is used. To get the best possible shar- ing, the read-only sections should not have any relocation entries. [..] Then again, maybe -fPIC does more than just preventing relocation entries in text or other read-only sections (but if it does, I'd be interested in knowing what, since I work on a compiler too and I'd like to avoid having this crashing problem in the code we generate). This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonas Maebe