This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/47390] [4.6 Regression] Linking with -export-dynamic broken
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Jan 2011 11:07:46 +0000
- Subject: [Bug driver/47390] [4.6 Regression] Linking with -export-dynamic broken
- Auto-submitted: auto-generated
- References: <bug-47390-4@http.gcc.gnu.org/bugzilla/>
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.