This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] PR19886, --as-needed regression
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 01 Apr 2016 09:05:51 -0400
- Subject: [binutils-gdb] PR19886, --as-needed regression
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 7b15fa7ac802f430f7fb7c2b77f40ab78c2e4018 ***
Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 7b15fa7ac802f430f7fb7c2b77f40ab78c2e4018
PR19886, --as-needed regression
This isn't perfect in checking whether libraries will be loaded since
elf_link_add_object_symbols doesn't recurse down DT_NEEDED links.
(That happens later in ld/emultempl/elf32.em after_open.) So in
effect this recursive check really only looks one level down the
DT_NEEDED tree. Which is enough for the most common case, and
libc.so/ld.so in particular.
PR 19886
* elflink.c (on_needed_list): Recursively check needed status.
(elf_link_add_object_symbols): Adjust.