This is the mail archive of the
mailing list for the GCC project.
Re: Creating executable with relocation information using Darwin linker
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Moshe Klausner <KLAUSNER at il dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, dpatel at apple dot com, Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Thu, 18 Mar 2004 14:39:58 -0800
- Subject: Re: Creating executable with relocation information using Darwin linker
- References: <OFA7F11A43.27014F3A-ONC2256E5B.0031D2CA-C2256E5B.0031EE94@il.ibm.com>
On Mar 18, 2004, at 01:05, Moshe Klausner wrote:
I'm not sure I'm posting the my question to the right place. If not
advice where to post.
I was trying to maintain the relocation information when linking on
X with Darwin linker (default ld?) using the -r option.
However, the output file was not executable.
I also tried the -execute but did not help.
How can I create an executable without stripping the relocation (and
symbols) information at link time?
-Wl,-r -Wl,-d -Wl,-execute
These three options are what is needed to have the Darwin linker to keep
And yes this is not the right place to ask, darwin-develop or one of the
darwin lists are a better place.