开发者

Using a Linker Script on Mac OS X

开发者 https://www.devze.com 2022-12-16 08:16 出处:网络
Is there any way to use a linker script with ld on Mac OS X? The GNU ld program on Linux accepts a -T <scriptname> option, but on Mac OS -T is an unknown command option. Using an alternative in

Is there any way to use a linker script with ld on Mac OS X?

The GNU ld program on Linux accepts a -T <scriptname> option, but on Mac OS -T is an unknown command option. Using an alternative installation of GCC is okay with me, if tha开发者_如何学Pythont solves the problem.


The Fink Project has a document on porting Unix software to Darwin / Mac OS X, it claims that the Darwin linker isn't even based on the GNU linker.

I think you will have 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 the GCC.

0

精彩评论

暂无评论...
验证码 换一张
取 消