What is clang's equivalent to -rdynamic gcc flag?

后端 未结 3 1229
时光说笑
时光说笑 2021-01-05 10:03

I can\'t find any similar option that would include all the function names into the final release binary. Or does clang do it by default?

3条回答
  •  既然无缘
    2021-01-05 10:49

    At least clang 3.3 seems to support -rdynamic though neither clang --help nor the manpage documents it. (If you are on OSX, -rdynamic isn't needed)

    gcc -rdynamic says "-rdynamic Pass the flag --export-dynamic to the ELF linker, on targets that support it."

    So clang should also be able to do the same with -Wl,--export-dynamic.

提交回复
热议问题