binutils-gdb/ld/testsuite
H.J. Lu 64d25c4414 Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32.
bfd/

2011-08-12  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/13082
	* elf64-x86-64.c (x86_64_elf_howto_table): Add R_X86_64_RELATIVE64.
	(elf_x86_64_relocate_section): Treat R_X86_64_64 like R_X86_64_32
	and zero-extend it to 64bit if addend is zero for x32.  Generate
	R_X86_64_RELATIVE64 for x32.

include/elf/

2011-08-12  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/13082
	* x86-64.h (R_X86_64_RELATIVE64): New.

ld/testsuite/

2011-08-12  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/13082
	* ld-x86-64/pr13082-1.s: New.
	* ld-x86-64/pr13082-1a.d: Likewise.
	* ld-x86-64/pr13082-1b.d: Likewise.
	* ld-x86-64/pr13082-2.s: Likewise.
	* ld-x86-64/pr13082-2a.d: Likewise.
	* ld-x86-64/pr13082-2b.d: Likewise.
	* ld-x86-64/pr13082-3.s: Likewise.
	* ld-x86-64/pr13082-3a.d: Likewise.
	* ld-x86-64/pr13082-3b.d: Likewise.
	* ld-x86-64/pr13082-4.s: Likewise.
	* ld-x86-64/pr13082-4a.d: Likewise.
	* ld-x86-64/pr13082-4b.d: Likewise.
	* ld-x86-64/pr13082-5.s: Likewise.
	* ld-x86-64/pr13082-5a.d: Likewise.
	* ld-x86-64/pr13082-5b.d: Likewise.
	* ld-x86-64/pr13082-6.s: Likewise.
	* ld-x86-64/pr13082-6a.d: Likewise.
	* ld-x86-64/pr13082-6b.d: Likewise.

	* ld-x86-64/x86-64.exp: Run pr13082-[1-6][ab].
2011-08-12 19:42:39 +00:00
..
config * config/default.exp (ld_assemble): Pass flags parameter to 2011-05-12 10:00:06 +00:00
ld-alpha * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not 2011-04-12 23:23:02 +00:00
ld-arm * bfd/bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype. 2011-08-09 13:10:44 +00:00
ld-auto-import update copyright dates 2009-09-02 07:25:43 +00:00
ld-bootstrap * ld-bootstrap/bootstrap.exp: Fix misplaced comment. 2010-12-20 13:05:00 +00:00
ld-cdtest update copyright dates 2009-09-02 07:25:43 +00:00
ld-checks update copyright dates 2009-09-02 07:25:43 +00:00
ld-cris * ld-cris/tls-e-tpoffcomm1.d: Adjust for second PR12763 change, 2011-05-24 00:06:17 +00:00
ld-crx update copyright dates 2009-09-02 07:25:43 +00:00
ld-cygwin update copyright dates 2009-09-02 07:25:43 +00:00
ld-d10v * ld-d10v/reloc-007.d: Don't error. 2010-09-23 11:55:47 +00:00
ld-discard * ld-elf/binutils.exp: Correct x86 gnu target match. 2010-11-18 06:57:57 +00:00
ld-elf Also check ignored "-z relro". 2011-07-14 14:54:53 +00:00
ld-elfcomm PR ld/12360 2010-12-31 22:29:19 +00:00
ld-elfvers * ld-elfvers/vers2.ver: Don't assume any particular index for 2011-06-16 00:42:06 +00:00
ld-elfvsb Fix misc x32 bugs. 2011-06-19 21:22:16 +00:00
ld-elfweak Adjust URLs. 2010-12-21 11:00:48 +00:00
ld-fastcall update copyright dates 2009-09-02 07:25:43 +00:00
ld-frv Update sources to GPLv3 2007-07-06 14:09:45 +00:00
ld-gc * ld-elf/elf.exp: Force 32-bit start address for alpha. 2011-03-30 17:41:36 +00:00
ld-h8300 * ld-h8300/h8300.exp: Use is_elf_format. 2010-09-29 06:20:06 +00:00
ld-i386 ld/testsuite/ 2011-07-27 20:58:14 +00:00
ld-ia64 Checked in the missing testcases. 2009-10-07 18:33:20 +00:00
ld-ifunc ELFOSABI_GNU 2011-07-03 13:37:09 +00:00
ld-libs binutils/testsuite/ 2009-04-16 04:24:07 +00:00
ld-linkonce Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
ld-m68hc11 update copyright dates 2009-09-02 07:25:43 +00:00
ld-m68k * ld-m68k/tls-gd-ie-1.d: Stabilize test. 2011-04-15 09:58:23 +00:00
ld-mep Update sources to GPLv3 2007-07-06 14:09:45 +00:00
ld-mips-elf bfd/ 2011-07-24 14:20:15 +00:00
ld-misc * ld-gc/start.d: Exclude frv-*-linux*. 2011-02-10 07:24:06 +00:00
ld-mmix PR ld/12815 2011-07-25 01:16:05 +00:00
ld-mn10300 PR gas/12519 2011-02-25 13:45:54 +00:00
ld-pe * dw2gencfi.c (dwcfi_seg_list): New struct. 2011-04-26 15:28:08 +00:00
ld-pie Improve binutils testsuite coverage for GNU/Hurd. 2010-11-08 06:43:40 +00:00
ld-plugin bfd/ChangeLog: 2011-05-07 14:29:10 +00:00
ld-powerpc bfd/ 2011-08-05 06:22:22 +00:00
ld-s390 2010-10-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2010-10-27 15:02:52 +00:00
ld-scripts * ld-scripts/section-flags.exp: Pass --local-store 0:0 for 2011-07-14 06:49:45 +00:00
ld-selective * ld-elf/flags1.d: Don't xfail tic6x. 2011-05-13 04:19:18 +00:00
ld-sh PR gas/12519 2011-02-25 13:45:54 +00:00
ld-shared Fix misc x32 bugs. 2011-06-19 21:22:16 +00:00
ld-sparc bfd/ 2010-02-11 19:57:40 +00:00
ld-spu bfd/ 2009-10-01 13:09:56 +00:00
ld-srec * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo. 2011-06-13 15:18:54 +00:00
ld-tic6x ld/testsuite/ 2011-05-20 10:10:00 +00:00
ld-tilegx * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo. 2011-06-13 15:18:54 +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 * ld-elf/flags1.d: Don't xfail tic6x. 2011-05-13 04:19:18 +00:00
ld-unique ELFOSABI_GNU 2011-07-03 13:37:09 +00:00
ld-v850 Add support for v850E2 and v850E2V3 2010-07-23 14:52:54 +00:00
ld-versados update copyright dates 2009-09-02 07:25:43 +00:00
ld-vxworks Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
ld-x86-64 Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
ld-xc16x update copyright dates 2009-09-02 07:25:43 +00:00
ld-xstormy16 update copyright dates 2009-09-02 07:25:43 +00:00
ld-xtensa bfd/ 2009-09-24 15:56:52 +00:00
lib bfd/ 2011-07-24 14:20:15 +00:00
ChangeLog Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
ChangeLog-2004 split changelogs 2006-01-16 23:15:07 +00:00
ChangeLog-2005 split changelogs 2006-01-16 23:15:07 +00:00
ChangeLog-2006 Move 2006 ChangeLog entries to ChangeLog-2006. 2007-01-09 17:30:59 +00:00
ChangeLog-2007 bfd/ 2008-01-07 16:45:35 +00:00
ChangeLog-2008 bfd/ 2009-01-02 16:48:11 +00:00
ChangeLog-2009 Move 2009 binutils ChangeLog to ChangeLog-2009. 2010-01-01 18:06:10 +00:00
ChangeLog-2010 Rotate binutils ChangeLogs. 2011-01-01 16:43:53 +00:00
ChangeLog-9303 Split ChangeLog files. 2004-01-02 11:16:21 +00:00