Using the Script Linker on Mac OS X

Can I use a linker script with ld on Mac OS X?

The GNU ld program on Linux accepts the -T <scriptname> parameter, but on Mac OS -T it is an unknown command. Using an alternate GCC installation is fine with me if this solves the problem.

+7
gcc linker macos linker-scripts
source share
1 answer

The Fink project has a document on porting Unix software to Darwin / Mac OS X ; it claims that the Darwin linker is not even based on the GNU linker.

I think you will need to read the ld man page to figure out how to do what you want with the native linker or install your own version of GCC.

+2
source share

All Articles