Cary Coutant 1f25b93bc6 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.
2014-02-06 17:15:02 -08:00
..
2012-12-10 17:38:42 +00:00
2009-12-31 05:07:22 +00:00
2009-12-31 05:07:22 +00:00
2013-05-21 20:56:13 +00:00
2012-10-24 02:32:15 +00:00
2012-10-24 02:32:15 +00:00
2012-10-24 02:32:15 +00:00
2012-10-24 02:32:15 +00:00
2012-10-24 02:32:15 +00:00
2012-10-24 02:32:15 +00:00
2012-10-24 02:32:15 +00:00
2012-10-24 02:32:15 +00:00
2012-10-24 02:32:15 +00:00
2012-10-24 02:32:15 +00:00
2012-10-24 02:32:15 +00:00
2009-12-31 01:14:34 +00:00
2011-03-22 00:18:26 +00:00
2009-08-07 18:29:54 +00:00
2009-08-07 18:29:54 +00:00
2009-08-12 18:30:39 +00:00
2009-08-12 18:30:39 +00:00
2009-08-12 18:30:39 +00:00
2009-08-05 20:51:56 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2010-08-19 22:50:16 +00:00
2011-07-08 22:48:08 +00:00
2011-07-08 22:48:08 +00:00
2011-07-08 22:48:08 +00:00
2010-08-12 22:18:15 +00:00
2011-06-23 00:46:14 +00:00
2011-06-25 00:40:57 +00:00
2011-08-02 00:37:41 +00:00
2013-06-06 06:06:56 +00:00
2013-10-11 21:56:16 +00:00
2013-10-11 21:56:16 +00:00
2013-05-21 21:14:40 +00:00
2013-05-21 21:14:40 +00:00
2011-10-18 00:25:53 +00:00
2011-09-26 23:00:17 +00:00
2010-04-06 21:56:24 +00:00
2013-06-14 20:07:18 +00:00
2011-09-26 23:00:17 +00:00
2012-08-14 08:31:57 +00:00
2012-08-14 08:31:57 +00:00
2011-07-12 22:29:09 +00:00
2011-07-12 22:29:09 +00:00
2012-05-14 17:35:43 +00:00
2013-04-15 16:34:12 +00:00
2013-04-15 16:34:12 +00:00
2013-07-30 21:26:53 +00:00
2008-03-26 23:36:46 +00:00
2012-05-21 16:52:38 +00:00
2012-05-21 16:52:38 +00:00
2009-03-04 06:46:27 +00:00
2013-06-14 20:07:18 +00:00
2011-06-09 00:51:39 +00:00
2013-06-14 20:07:18 +00:00
2013-10-11 21:59:46 +00:00
2009-02-27 19:57:46 +00:00
2009-12-30 22:35:49 +00:00
2008-07-23 23:44:02 +00:00
2008-07-23 23:44:02 +00:00
2009-12-30 22:35:49 +00:00
2011-07-02 05:30:00 +00:00
2011-07-02 05:30:00 +00:00
2011-07-02 05:30:00 +00:00