This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Creating executable with relocation information using Darwin linker
On Mar 18, 2004, at 1:05 AM, Moshe Klausner wrote:
I'm not sure I'm posting the my question to the right place. If not
please
advice where to post.
darwin-development@lists.apple.com is the right place.
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.
Output file is a object file. Try 'file' command on it.
Here is what man 'ld' says,
-r Save the relocation information in the output file so
that it
can be the subject of another ld run. The resulting
file type
is a Mach-O relocatable file (MH_OBJECT) if not otherwise
speci-
fied. This flag also prevents final definitions
from being
given to common symbols, and suppresses the `undefined
symbol'
diagnostics.
--
Devang