This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Creating executable with relocation information using Darwin linker



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 please
advice where to post.


I was trying to maintain the relocation information when linking on MAC OS
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
relocation information.
And yes this is not the right place to ask, darwin-develop or one of the
darwin lists are a better place.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]