与GNU LD --export-dynamic标志等效的Solaris链接器 [英] Solaris linker equivalent to the GNU LD --export-dynamic flag
问题描述
就像这个问题说的那样:我们正在使用GNU链接器在Linux上构建,而在Solaris中使用solaris ld
进行构建. GNU ld
支持--export-dynamic
标志,该标志:
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.
使用solaris链接器等效于此标志是什么? 有吗?
What is the equivalent to this flag using the solaris linker? Is there an equivalent?
推荐答案
默认情况下,Sun Studio链接器(ld
)导出所有符号.
The Sun Studio linker (ld
), by default, exports all symbols.
这篇关于与GNU LD --export-dynamic标志等效的Solaris链接器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!