binutils-gdb/ld/testsuite/ld-i386
H.J. Lu 41bed6dd8a bfd/
2008-03-16  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/5789
	PR ld/5943
	* elf32-i386.c  (elf_i386_relocate_section): Issue an error
	for R_386_GOTOFF relocaton against undefined hidden/internal
	symbols when building a shared object.

	* elf64-x86-64.c (elf64_x86_64_relocate_section): Issue an
	error for R_X86_64_PC8/R_X86_64_PC16/R_X86_64_PC32
	relocaton against undefined hidden/internal symbols when
	building a shared object.
	(elf64_x86_64_finish_dynamic_symbol): Return FALSE when symbol
	is referenced locally, but isn't defined in a regular file.

ld/testsuite/

2008-03-16  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/5789
	PR ld/5943
	* ld-i386/hidden1.d: New.
	* ld-i386/hidden1.s: Likewise.
	* ld-i386/hidden2.d: Likewise.
	* ld-i386/hidden2.s: Likewise.
	* ld-i386/hidden3.d: Likewise.
	* ld-i386/hidden4.s: Likewise.
	* ld-i386/protected1.d: Likewise.
	* ld-i386/protected1.s: Likewise.
	* ld-i386/protected2.d: Likewise.
	* ld-i386/protected2.s: Likewise.
	* ld-i386/protected3.d: Likewise.
	* ld-i386/protected3.s: Likewise.
	* ld-x86-64/hidden1.d: Likewise.
	* ld-x86-64/hidden1.s: Likewise.
	* ld-x86-64/hidden2.d: Likewise.
	* ld-x86-64/hidden2.s: Likewise.
	* ld-x86-64/hidden3.d: Likewise.
	* ld-x86-64/hidden3.s: Likewise.
	* ld-x86-64/protected1.d: Likewise.
	* ld-x86-64/protected1.s: Likewise.
	* ld-x86-64/protected2.d: Likewise.
	* ld-x86-64/protected2.s: Likewise.
	* ld-x86-64/protected3.d: Likewise.
	* ld-x86-64/protected3.s: Likewise.

	* ld-i386/i386.exp: Run hidden1, hidden2, hidden3, protected1,
	protected2 and protected3.
	* ld-x86-64/x86-64.exp: Likewise.
2008-03-16 22:26:23 +00:00
..
abs.d
abs.s
alloc.d bfd/ 2007-03-22 15:50:38 +00:00
alloc.s bfd/ 2007-03-22 15:50:38 +00:00
alloc.t bfd/ 2007-03-22 15:50:38 +00:00
combreloc.d 2007-04-05 H.J. Lu <hongjiu.lu@intel.com> 2007-04-05 13:47:02 +00:00
combreloc.s
emit-relocs.d
emit-relocs.s
hidden1.d bfd/ 2008-03-16 22:26:23 +00:00
hidden1.s bfd/ 2008-03-16 22:26:23 +00:00
hidden2.d bfd/ 2008-03-16 22:26:23 +00:00
hidden2.s bfd/ 2008-03-16 22:26:23 +00:00
hidden3.d bfd/ 2008-03-16 22:26:23 +00:00
hidden3.s bfd/ 2008-03-16 22:26:23 +00:00
i386.exp bfd/ 2008-03-16 22:26:23 +00:00
pcrel8.d
pcrel8.s
pcrel16.d ld/testsuite/ 2007-02-05 18:22:49 +00:00
pcrel16.s
pcrel16abs.d PR 3958 2007-03-07 08:54:35 +00:00
pcrel16abs.s PR 3958 2007-03-07 08:54:35 +00:00
protected1.d bfd/ 2008-03-16 22:26:23 +00:00
protected1.s bfd/ 2008-03-16 22:26:23 +00:00
protected2.d bfd/ 2008-03-16 22:26:23 +00:00
protected2.s bfd/ 2008-03-16 22:26:23 +00:00
protected3.d bfd/ 2008-03-16 22:26:23 +00:00
protected3.s bfd/ 2008-03-16 22:26:23 +00:00
reloc.d 2007-04-05 H.J. Lu <hongjiu.lu@intel.com> 2007-04-05 13:47:02 +00:00
reloc.s
tlsbin.dd gas/ 2007-09-20 17:38:38 +00:00
tlsbin.rd 2007-09-29 Mike Frysinger <vapier@gentoo.org> 2007-09-30 01:33:15 +00:00
tlsbin.s
tlsbin.sd
tlsbin.td
tlsbindesc.dd gas/testsuite/ 2007-04-27 04:22:02 +00:00
tlsbindesc.rd 2007-09-29 Mike Frysinger <vapier@gentoo.org> 2007-09-30 01:33:15 +00:00
tlsbindesc.s
tlsbindesc.sd
tlsbindesc.td
tlsbinpic.s bfd/ 2007-08-23 16:13:37 +00:00
tlsdesc.dd gas/testsuite/ 2007-04-27 04:22:02 +00:00
tlsdesc.rd 2007-09-29 Mike Frysinger <vapier@gentoo.org> 2007-09-30 01:33:15 +00:00
tlsdesc.s
tlsdesc.sd bfd/ 2006-10-17 13:41:49 +00:00
tlsdesc.td
tlsg.s
tlsg.sd
tlsgd1.dd bfd/ 2007-08-23 16:13:37 +00:00
tlsgd1.s bfd/ 2007-08-23 16:13:37 +00:00
tlsgdesc.dd gas/testsuite/ 2007-04-27 04:22:02 +00:00
tlsgdesc.rd 2007-09-29 Mike Frysinger <vapier@gentoo.org> 2007-09-30 01:33:15 +00:00
tlsgdesc.s
tlsie1.dd 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> 2007-08-24 19:39:19 +00:00
tlsie1.s 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> 2007-08-24 19:39:19 +00:00
tlsie2.d 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> 2007-08-24 19:39:19 +00:00
tlsie2.s 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> 2007-08-24 19:39:19 +00:00
tlsie3.d 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> 2007-08-24 19:39:19 +00:00
tlsie3.s 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> 2007-08-24 19:39:19 +00:00
tlsie4.d 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> 2007-08-24 19:39:19 +00:00
tlsie4.s 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> 2007-08-24 19:39:19 +00:00
tlsie5.d 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> 2007-08-24 19:39:19 +00:00
tlsie5.s 2007-08-24 H.J. Lu <hongjiu.lu@intel.com> 2007-08-24 19:39:19 +00:00
tlsindntpoff.dd
tlsindntpoff.s
tlsld1.dd gas/ 2007-09-20 17:38:38 +00:00
tlsld1.s bfd/ 2007-08-14 19:48:21 +00:00
tlslib.s
tlsnopic1.s
tlsnopic2.s
tlsnopic.dd gas/testsuite/ 2007-04-27 04:22:02 +00:00
tlsnopic.rd 2007-09-29 Mike Frysinger <vapier@gentoo.org> 2007-09-30 01:33:15 +00:00
tlsnopic.sd
tlspic1.s
tlspic2.s
tlspic.dd gas/testsuite/ 2007-04-27 04:22:02 +00:00
tlspic.rd 2007-09-29 Mike Frysinger <vapier@gentoo.org> 2007-09-30 01:33:15 +00:00
tlspic.sd
tlspic.td
vxworks1-lib.dd
vxworks1-lib.nd
vxworks1-lib.rd ld/testsuite/ 2007-05-15 12:22:34 +00:00
vxworks1-lib.s
vxworks1-lib.td ld/testsuite/ 2007-05-15 12:22:34 +00:00
vxworks1-static.d
vxworks1.dd
vxworks1.ld ld/testsuite/ 2007-05-15 12:22:34 +00:00
vxworks1.rd
vxworks1.s
vxworks2-static.sd
vxworks2.s
vxworks2.sd
warn1.d bfd/ 2007-04-05 16:16:28 +00:00
warn1.s bfd/ 2007-04-05 16:16:28 +00:00
zero.s