This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
gdb and binutils branch master updated. 1f25b93bc6e10b314ccdc5c42583f77db1b33e2e
- From: ccoutant at sourceware dot org
- To: binutils-cvs at sourceware dot org
- Date: 7 Feb 2014 01:15:31 -0000
- Subject: gdb and binutils branch master updated. 1f25b93bc6e10b314ccdc5c42583f77db1b33e2e
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 1f25b93bc6e10b314ccdc5c42583f77db1b33e2e (commit)
from 699e9b8780835c321da32a6c32cd6dd56fcd6d54 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1f25b93bc6e10b314ccdc5c42583f77db1b33e2e
commit 1f25b93bc6e10b314ccdc5c42583f77db1b33e2e
Author: Cary Coutant <ccoutant@google.com>
Date: Thu Feb 6 17:12:50 2014 -0800
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.
-----------------------------------------------------------------------
Summary of changes:
gold/archive.cc | 86 +++++++++++++++++++---------------
gold/testsuite/Makefile.am | 12 +++++
gold/testsuite/Makefile.in | 30 +++++++++++-
gold/testsuite/weak_undef_file3.cc | 29 ++++++++++++
gold/testsuite/weak_undef_file4.cc | 29 ++++++++++++
gold/testsuite/weak_undef_test_2.cc | 79 ++++++++++++++++++++++++++++++++
6 files changed, 224 insertions(+), 41 deletions(-)
create mode 100644 gold/testsuite/weak_undef_file3.cc
create mode 100644 gold/testsuite/weak_undef_file4.cc
create mode 100644 gold/testsuite/weak_undef_test_2.cc
hooks/post-receive
--
gdb and binutils