[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/14915] --copy-dt-needed-entries not working
From: |
matz at suse dot de |
Subject: |
[Bug ld/14915] --copy-dt-needed-entries not working |
Date: |
Tue, 04 Dec 2012 14:06:26 +0000 |
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
--- Comment #1 from Michael Matz <matz at suse dot de> 2012-12-04 14:06:26 UTC
---
Behaviour also doesn't change if we include objects that refer to stuff from
libm or libt1 into libt2. I tried to debug ld a bit to see where this is
supposed to be handled but got lost after two hours. It seems that some
handling of dt_needed entries in elf32.xm:gld*_after_open is only done
for executables, but even creating an executable doesn't help.
In any case, I couldn't find any code that really tries to add DT_NEEDED
entries from referred libraries to the output file. The code in
elflink.c:elf_link_add_object_symbols at least only adds to the htab->needed
list on those entries (and 'libm.so.6' is included there), but doesn't actually
call elf_add_dt_needed_tag on those entries (and nobody else does
either).
It certainly doesn't work as documented or expected (with my expectations).
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/14915] New: --copy-dt-needed-entries not working, rguenth at gcc dot gnu.org, 2012/12/04
- [Bug ld/14915] --copy-dt-needed-entries not working,
matz at suse dot de <=
- [Bug ld/14915] --copy-dt-needed-entries not working, hjl.tools at gmail dot com, 2012/12/04
- [Bug ld/14915] --copy-dt-needed-entries not working, hjl.tools at gmail dot com, 2012/12/04
- [Bug ld/14915] --copy-dt-needed-entries not working, hjl.tools at gmail dot com, 2012/12/04
- [Bug ld/14915] --copy-dt-needed-entries not working, matz at suse dot de, 2012/12/04
- [Bug ld/14915] --copy-dt-needed-entries not working, rguenth at gcc dot gnu.org, 2012/12/04
- [Bug ld/14915] --copy-dt-needed-entries not working, matz at suse dot de, 2012/12/04
- [Bug ld/14915] --copy-dt-needed-entries not working, matz at suse dot de, 2012/12/04
- [Bug ld/14915] --copy-dt-needed-entries not working, hjl.tools at gmail dot com, 2012/12/04
- [Bug ld/14915] --copy-dt-needed-entries not working when creating DSO, hjl.tools at gmail dot com, 2012/12/04
- [Bug ld/14915] --copy-dt-needed-entries not working when creating DSO, hjl.tools at gmail dot com, 2012/12/04