[clang] [Driver] Add support for -export-dynamic which can match GCC behavior. (PR #72781)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 19 10:54:31 PST 2023


MaskRay wrote:

GCC's default spec file for Linux does not say how `-export-dynamic` translates to ld `-export-dynamic`.

I think ld `--export-dynamic` is exclusively caused by `-Wl,--export-dynamic` or `-rdynamic`.
Do you have any example of `gcc -export-dynamic` uses?

We probably should just reject `-exxx`: https://github.com/llvm/llvm-project/pull/72804


https://github.com/llvm/llvm-project/pull/72781


More information about the cfe-commits mailing list