binutils-gdb/ld/testsuite
H.J. Lu 90c984fc53 Properly handle indirect symbols
2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/3351
	* elflink.c (_bfd_elf_update_dynamic_flags): New.
	(_bfd_elf_merge_symbol): Update both real and indirect symbol
	dynamic flags.
	(_bfd_elf_add_default_symbol): Make the real symbol dynamic if
	the indirect symbol is defined in a shared library.
	(elf_link_add_object_symbols): Likewise.  If the indirect
	symbol has been forced local, don't make the real symbol
	dynamic.
	(elf_link_check_versioned_symbol): Check indirect symbol.
	(elf_link_output_extsym): Use real symbol definition when
	reporting indirect symbol error.  Check version info for
	dynamic versioned symbol.

2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/3351
	* ld-elf/indirect.exp: New file.
	* ld-elf/indirect1a.c: Likewise.
	* ld-elf/indirect1b.c: Likewise.
	* ld-elf/indirect1c.c: Likewise.
	* ld-elf/indirect2.c: Likewise.
	* ld-elf/indirect3.out: Likewise.
	* ld-elf/indirect3a.c: Likewise.
	* ld-elf/indirect3b.c: Likewise.
	* ld-elf/indirect3c.c: Likewise.
	* ld-elf/indirect4.out: Likewise.
	* ld-elf/indirect4a.c: Likewise.
	* ld-elf/indirect4b.c: Likewise.
	* ld-elf/indirect4c.c: Likewise.
2012-07-03 14:44:35 +00:00
..
config * config/default.exp: Update copyright date. 2012-03-15 01:57:57 +00:00
ld-alpha ld/ 2012-06-15 15:13:41 +00:00
ld-arm ld/testsuite/ 2012-06-28 16:31:57 +00:00
ld-auto-import
ld-bootstrap 2011-12-03 David Daney <david.daney@cavium.com> 2011-12-03 17:13:02 +00:00
ld-cdtest
ld-checks
ld-cris Trim last, empty, line 2012-06-18 06:19:02 +00:00
ld-crx
ld-cygwin
ld-d10v * ld-d10v/reloc-007.d: Don't error. 2010-09-23 11:55:47 +00:00
ld-discard bfd/ 2012-04-03 16:01:38 +00:00
ld-elf Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
ld-elfcomm PR ld/12360 2010-12-31 22:29:19 +00:00
ld-elfvers bfd/ 2012-04-03 16:01:38 +00:00
ld-elfvsb ld/ 2012-06-15 15:13:41 +00:00
ld-elfweak bfd/ 2012-04-03 16:01:38 +00:00
ld-fastcall
ld-frv
ld-gc ld/ 2012-06-21 03:33:00 +00:00
ld-h8300 * ld-h8300/h8300.exp: Use is_elf_format. 2010-09-29 06:20:06 +00:00
ld-i386 ld/testsuite/ 2012-07-02 18:20:31 +00:00
ld-ia64 ld/ 2012-06-15 15:13:41 +00:00
ld-ifunc Add missing "foo" after ".global" 2012-05-31 17:16:54 +00:00
ld-libs
ld-linkonce bfd/ 2012-04-03 16:01:38 +00:00
ld-m68hc11 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support. 2012-05-15 12:55:51 +00:00
ld-m68k * ld-m68k/tls-ld-1.d: Update. 2012-05-17 06:13:32 +00:00
ld-mep
ld-mips-elf ld/ 2012-06-15 15:13:41 +00:00
ld-misc * ld-gc/start.d: Exclude frv-*-linux*. 2011-02-10 07:24:06 +00:00
ld-mmix ld/ 2012-06-15 15:13:41 +00:00
ld-mn10300 bfd/ 2012-06-06 10:50:18 +00:00
ld-pe * dw2gencfi.c (dwcfi_seg_list): New struct. 2011-04-26 15:28:08 +00:00
ld-pie * ld-pie/pie.exp: Remove extra braces. 2012-04-23 18:03:28 +00:00
ld-plugin * config/tc-m68hc11.c: Add S12X and XGATE co-processor support. 2012-05-15 12:55:51 +00:00
ld-powerpc ld/ 2012-06-15 15:13:41 +00:00
ld-s390 ld/ 2012-06-15 15:13:41 +00:00
ld-scripts ld/ 2012-06-15 15:13:41 +00:00
ld-selective * ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux. 2012-02-14 01:02:04 +00:00
ld-sh ld/ 2012-06-15 15:13:41 +00:00
ld-shared Support x86_64-*-linux-gnux32 2012-05-04 20:01:03 +00:00
ld-sparc ld/ 2012-06-15 15:13:41 +00:00
ld-spu ld/ 2012-06-15 15:13:41 +00:00
ld-srec ld/ 2012-05-26 11:13:20 +00:00
ld-tic6x ld/ 2012-06-15 15:13:41 +00:00
ld-tilegx Add big-endian support for tilegx. 2012-02-25 19:51:34 +00:00
ld-tilepro * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo. 2011-06-13 15:18:54 +00:00
ld-undefined bfd/ 2012-04-03 16:01:38 +00:00
ld-unique bfd/ 2012-04-03 16:01:38 +00:00
ld-v850 Add support for v850E2 and v850E2V3 2010-07-23 14:52:54 +00:00
ld-versados
ld-vxworks
ld-x86-64 ld/testsuite/ 2012-07-02 18:20:31 +00:00
ld-xc16x
ld-xstormy16
ld-xtensa
lib * lib/ld-lib.exp (run_dump_test): For options "warning" and 2012-05-17 12:06:55 +00:00
ChangeLog Properly handle indirect symbols 2012-07-03 14:44:35 +00:00
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010 Rotate binutils ChangeLogs. 2011-01-01 16:43:53 +00:00
ChangeLog-2011 Rotate ChangeLogs 2012-01-05 10:09:39 +00:00
ChangeLog-9303