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-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils