This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] weakdef list handling
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Sun, 12 Nov 2017 05:49:31 -0500
- Subject: [binutils-gdb] weakdef list handling
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT e3e53eed9c2f1ab82ae4a7683f474b4f6eb162c7 ***
Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: e3e53eed9c2f1ab82ae4a7683f474b4f6eb162c7
weakdef list handling
The existing code allowed common and indirect symbols to pass an
assert, but then read root.u.def which is not valid for anything
besides defined and weakdef symbols. The garbage root.u.def.section
pointer read can't possibly match pointers stored at the same location
for indirect and common symbols, so we would always have left
u.weakdef NULL.
* elflink.c (elf_link_add_object_symbols): Ignore anything but
defined and defweak symbols when setting up weakdefs.