diff options
author | Cary Coutant <ccoutant@google.com> | 2014-02-06 17:12:50 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2014-02-06 17:15:02 -0800 |
commit | 1f25b93bc6e10b314ccdc5c42583f77db1b33e2e (patch) | |
tree | d7141deb29a5c81b6728666967f0af067faf42f8 /etc/gnu-oids.texi | |
parent | 699e9b8780835c321da32a6c32cd6dd56fcd6d54 (diff) | |
download | gdb-1f25b93bc6e10b314ccdc5c42583f77db1b33e2e.zip gdb-1f25b93bc6e10b314ccdc5c42583f77db1b33e2e.tar.gz gdb-1f25b93bc6e10b314ccdc5c42583f77db1b33e2e.tar.bz2 |
Fix problem where -u is ignored when a weak undef is seen.
When the linker has a weak undefined symbol, it normally does not
select an archive library member just to satisfy the reference.
If the same symbol is also listed in a -u option, however, we
should select the archive library member. This patch reorders
the code in Library_base::should_include_member so that the
additional checks are performed in the case of a weak undef.
gold/
2014-02-06 Cary Coutant <ccoutant@google.com>
* archive.cc (Library_base::should_include_member): Reorder
code to check for -u option if a weak undef has already been seen.
* testsuite/Makefile.am (weak_undef_test_2): New test case.
* testsuite/Makefile.in: Regenerate.
* testsuite/weak_undef_file3.cc: New file.
* testsuite/weak_undef_file4.cc: New file.
* testsuite/weak_undef_test_2.cc: New file.
Diffstat (limited to 'etc/gnu-oids.texi')
0 files changed, 0 insertions, 0 deletions