http://sourceware.org/bugzilla/show_bug.cgi?id=14915
Bug #: 14915
Summary: --copy-dt-needed-entries not working
Product: binutils
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: ld
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
Michael Matz matz at suse dot de changed:
What|Removed |Added
CC||matz at suse dot de
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
--- Comment #2 from H.J. Lu hjl.tools at gmail dot com 2012-12-04 14:07:56
UTC ---
Please show the output of
gcc -o libt2.so -shared -Wl,--copy-dt-needed-entries -L. -lt1 -v
We need to see all command-line options passed to
linker.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
H.J. Lu hjl.tools at gmail dot com changed:
What|Removed |Added
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
H.J. Lu hjl.tools at gmail dot com changed:
What|Removed |Added
Status|WAITING |NEW
--- Comment
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
--- Comment #5 from Michael Matz matz at suse dot de 2012-12-04 14:39:58 UTC
---
(In reply to comment #4)
This option is renamed from --add-needed:
http://sourceware.org/ml/binutils/2004-07/msg00093.html
Yes, but why are you mentioning
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
--- Comment #6 from Richard Guenther rguenth at gcc dot gnu.org 2012-12-04
14:41:12 UTC ---
(In reply to comment #5)
(In reply to comment #4)
This option is renamed from --add-needed:
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
--- Comment #7 from Michael Matz matz at suse dot de 2012-12-04 14:44:50 UTC
---
(In reply to comment #5)
(In reply to comment #4)
This option is renamed from --add-needed:
http://sourceware.org/ml/binutils/2004-07/msg00093.html
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
--- Comment #8 from Michael Matz matz at suse dot de 2012-12-04 14:56:09 UTC
---
Let's create a different testcase showing also similar symptoms of not
correctly adding DT_NEEDED entries as documented, this time to search scopes:
% cat bla.c
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
--- Comment #9 from H.J. Lu hjl.tools at gmail dot com 2012-12-04 18:21:46
UTC ---
--copy-dt-needed-entries doesn't work when -shared is used.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
H.J. Lu hjl.tools at gmail dot com changed:
What|Removed |Added
Summary|--copy-dt-needed-entries
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
--- Comment #11 from H.J. Lu hjl.tools at gmail dot com 2012-12-04 18:54:53
UTC ---
This:
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 6c84b82..875ac2c 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
H.J. Lu hjl.tools at gmail dot com changed:
What|Removed |Added
URL|
http://sourceware.org/bugzilla/show_bug.cgi?id=14915
--- Comment #3 from Michael Matz matz at suse dot de 2012-12-04 14:12:29 UTC
---
(In reply to comment #2)
gcc -o libt2.so -shared -Wl,--copy-dt-needed-entries -L. -lt1 -v
/usr/lib64/gcc/x86_64-suse-linux/4.5/collect2 --build-id
http://sourceware.org/bugzilla/show_bug.cgi?id=14918
Bug #: 14918
Summary: linking with -flto always links in libgcc:s.so
Product: binutils
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: ld
15 matches
Mail list logo