开发者

Using a Linker Script on Mac OS X

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜