Solaris linker equivalent to the GNU LD --export-dynamic flag

血红的双手。 提交于 2019-12-08 07:29:25

问题


Like the question says: We are building on Linux using the GNU linker, and on Solaris using the solaris ld. GNU ld supports the --export-dynamic flag, which:

When creating a dynamically linked executable, add all symbols to the dynamic symbol table. The dynamic symbol table is the set of symbols which are visible from dynamic objects at run time.

What is the equivalent to this flag using the solaris linker? Is there an equivalent?


回答1:


The Sun Studio linker (ld), by default, exports all symbols.




回答2:


You can find the complete reference for the Sun linker on docs.sun.com. Search for the "Linker and Libraries Guide". By "all symbols" you mean all global symbols, right? C file-static symbols are not promoted to global right? I don't think that would work.



来源:https://stackoverflow.com/questions/596076/solaris-linker-equivalent-to-the-gnu-ld-export-dynamic-flag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!