gcc -rdynamic参数解释

来源:互联网 发布:穆逢春 知乎 编辑:程序博客网 时间:2024/05/21 17:11

原文地址:http://blog.csdn.net/runboying/article/details/7006224


 选项 -rdynamic 用来通知链接器将所有符号添加到动态符号表中
(目的是能够通过使用 dlopen 来实现向后跟踪)
-rdynamic
Pass the flag ‘-export-dynamic’ to the ELF linker, on targets that support
it. This instructs the linker to add all symbols, not only used ones, to the
dynamic symbol table. This option is needed for some uses of dlopen or to
allow obtaining backtraces from within a program.

0 0
原创粉丝点击