Re: query for ASLR settings in Xcode.
Re: query for ASLR settings in Xcode.
- Subject: Re: query for ASLR settings in Xcode.
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sat, 24 Oct 2009 18:25:29 +0200
You miss the comma. This is a gcc option, not a libtool option. Xcode calls gcc to link the binary, and gcc call ld. If you want to pass an option to ld, you have to use "-Wl,<your option>"
man gcc -> Linker Options
Le 24 oct. 2009 à 16:20, Arnab Ganguly a écrit : No luck still the problem persists.I tried with -Wl-pie. I get the same error .Actually libtool doesn't have any -W option.But still any help would be very much appreciated. Thanks, -A
On Sat, Oct 24, 2009 at 2:27 PM, Jean-Daniel Dupas <email@hidden> wrote:
Yes, I did a typo in my first reply, but jonas posted a fixed:
This should be -Wl,-pie Le 24 oct. 2009 à 05:30, Arnab Ganguly a écrit : Thanks for help, but no luck.Getting the below error.
/Developer/usr/bin/libtool unknown option character 'W' in -W -pie. Command /Developer/usr/bin/libtool failed.
-A
On Fri, Oct 23, 2009 at 1:33 PM, Jean-Daniel Dupas <email@hidden> wrote:
Le 21 oct. 2009 à 20:31, Arnab Ganguly a écrit :
Hi All,
I was following the steps for getting the ASLR (Address Space Layout Randomization) settings for my Application.
But when I set Project/Target Settings > Build > Other Linker Flags > as "-pie" I get errors as /Developer/usr/bin/libtool: can't open file: lpie (No such file or directory).
Try '-W-pie' instead of '-pie'
The -W option tell gcc to pass the following string (-pie here) to ld when linking.
But for other two settings "-fpie" in "Other C Flags" setting and "Generate Position-Dependent Code" as off.
Is something silly I am doing.
Thanks,
-A
-- Jean-Daniel
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden