http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47390
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011.01.21 11:07:28 CC| |jsm28 at gcc dot gnu.org Target Milestone|--- |4.6.0 Summary|Linking with |[4.6 Regression] Linking |-export-dynamic broken |with -export-dynamic broken Ever Confirmed|0 |1 --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-21 11:07:28 UTC --- -export-dynamic is a linker option, you have to use -Wl,-export-dynamic to pass it to the linker via the gcc driver. Joseph - 4.5 handled -export-dynamic by passing it through to the linker (not exactly sure why). Can we restore this behavior to avoid regressions? If not, can we diagnose this invalid option then? It seems to be passed as -e xport-dynamic to the linker now, resulting in an undefined symbol for me with a trivial hello-world. Currently neither behavior seems to be documented btw.