gcc -rdynamic参数解释

来源:互联网 发布:智慧城市五大数据库 编辑:程序博客网 时间:2024/06/02 04:17

 选项 -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.

 

原创粉丝点击