This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: detecting non-PIC in shared lib on Darwin?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 28 Apr 2006 11:18:36 +0100
- Subject: RE: detecting non-PIC in shared lib on Darwin?
On 27 April 2006 20:02, Mike Stump wrote:
> On Apr 26, 2006, at 6:26 PM, Jack Howarth wrote:
>> readelf -d foo.so | grep TEXTREL
>>
>> Does anyone know if some mechanism like this is possible for Darwin
>> shared libraries?
>
> A man page is a terrible thing to waste:
Yes, but it's an even more terrible thing to wrap:
> -segprot name max init (32-bit only)
> Specifies the maximum and initial virtual memory
> protection of
> the named segment, name, to be max and
> init ,respectively. The
Ouch! :)
cheers,
DaveK
--
Can't think of a witty .sigline today....