public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65057] New: Broken shared library if created with -fuse-ld=gold -shared -Wl,--dynamic-list
@ 2015-02-13 21:20 manisandro at gmail dot com
2015-02-13 21:38 ` [Bug c++/65057] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: manisandro at gmail dot com @ 2015-02-13 21:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65057
Bug ID: 65057
Summary: Broken shared library if created with -fuse-ld=gold
-shared -Wl,--dynamic-list
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: manisandro at gmail dot com
Created attachment 34752
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34752&action=edit
testcase
What follows is with gcc-5.0.0-0.10.fc22.x86_64 (Fedora rawhide).
See test case attached, build and run with the provided build.sh script.
Overview:
- A base class in a shared library (base.h, base.cpp)
- The shared library is linked with -fuse-ld=gold -shared -Wl,--dynamic-list,
the contents of the actual list provided to --dynamic-list does not seem to
matter (in the provided testcase, the name of the symbol is made up).
- A derived class in an application linking with the library (derived.h,
derived.cpp)
- Some random class which uses the derived class
Problem:
- The assertion at derived.h:25 fails
=> Derived::Derived calls Base::Base passing a DerivedPrivate instance to the
base class, then Derived::Derived calls Base::init, which sets Base::self to
the instance pointer this and calls DerivedPrivate::foo on the passed
DerivedPrivate instance, which tests that Base::self is not null. This
incorrectly fails.
Background:
This is causing Qt5 applications to crash in various ways.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/65057] Broken shared library if created with -fuse-ld=gold -shared -Wl,--dynamic-list
2015-02-13 21:20 [Bug c++/65057] New: Broken shared library if created with -fuse-ld=gold -shared -Wl,--dynamic-list manisandro at gmail dot com
@ 2015-02-13 21:38 ` pinskia at gcc dot gnu.org
2015-02-13 21:58 ` trippels at gcc dot gnu.org
2015-02-13 22:12 ` manisandro at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-02-13 21:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65057
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Does this work without -fuse-ld=gold ?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/65057] Broken shared library if created with -fuse-ld=gold -shared -Wl,--dynamic-list
2015-02-13 21:20 [Bug c++/65057] New: Broken shared library if created with -fuse-ld=gold -shared -Wl,--dynamic-list manisandro at gmail dot com
2015-02-13 21:38 ` [Bug c++/65057] " pinskia at gcc dot gnu.org
@ 2015-02-13 21:58 ` trippels at gcc dot gnu.org
2015-02-13 22:12 ` manisandro at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-02-13 21:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65057
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |trippels at gcc dot gnu.org
Resolution|--- |MOVED
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
This is a known gold issue, see:
https://sourceware.org/bugzilla/show_bug.cgi?id=16992
Unfortunately nothing is being done about it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/65057] Broken shared library if created with -fuse-ld=gold -shared -Wl,--dynamic-list
2015-02-13 21:20 [Bug c++/65057] New: Broken shared library if created with -fuse-ld=gold -shared -Wl,--dynamic-list manisandro at gmail dot com
2015-02-13 21:38 ` [Bug c++/65057] " pinskia at gcc dot gnu.org
2015-02-13 21:58 ` trippels at gcc dot gnu.org
@ 2015-02-13 22:12 ` manisandro at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: manisandro at gmail dot com @ 2015-02-13 22:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65057
--- Comment #3 from Sandro Mani <manisandro at gmail dot com> ---
Yes, without -fuse-ld=gold it works.
What I forgot to mention: qt worked with gcc 4.9 (and the options passed to the
Qt configure script haven't changed). The build log of a qt5-qtbase build built
with gcc 4.9 shows that it was also built using the gold linker.
So this really appears to be a gcc 5.0 regression.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-02-13 22:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-13 21:20 [Bug c++/65057] New: Broken shared library if created with -fuse-ld=gold -shared -Wl,--dynamic-list manisandro at gmail dot com
2015-02-13 21:38 ` [Bug c++/65057] " pinskia at gcc dot gnu.org
2015-02-13 21:58 ` trippels at gcc dot gnu.org
2015-02-13 22:12 ` manisandro at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).