binutils-gdb/ld/testsuite/ld-x86-64
H.J. Lu d7921315ba Check R_X86_64_32 overflow and allow R_X86_64_64 for x32.
bfd/

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

	PR ld/13048
	* archures.c (bfd_mach_i386_intel_syntax): New.
	(bfd_mach_i386_i8086): Updated.
	(bfd_mach_i386_i386): Likewise.
	(bfd_mach_x86_64): Likewise.
	(bfd_mach_x64_32): Likewise.
	(bfd_mach_i386_i386_intel_syntax): Likewise.
	(bfd_mach_x86_64_intel_syntax): Likewise.
	(bfd_mach_x64_32_intel_syntax): Likewise.
	(bfd_mach_l1om): Likewise.
	(bfd_mach_l1om_intel_syntax): Likewise.
	(bfd_mach_k1om): Likewise.
	(bfd_mach_k1om_intel_syntax): Likewise.

	* bfd-in2.h: Regenerated.

	* cpu-i386.c (bfd_i386_compatible): Check mach instead of
	bits_per_address.
	(bfd_x64_32_arch_intel_syntax): Set bits_per_address to 64.
	(bfd_x64_32_arch): Likewise.

	* elf64-x86-64.c: Include "libiberty.h".
	(x86_64_elf_howto_table): Append x32 R_X86_64_32.
	(elf_x86_64_rtype_to_howto): Support x32 R_X86_64_32.
	(elf_x86_64_reloc_type_lookup): Likewise.
	(elf_x86_64_reloc_name_lookup): Likewise.
	(elf_x86_64_relocate_section): Likewise.
	(elf_x86_64_check_relocs): Allow R_X86_64_64 relocations for x32.

gas/

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

	PR ld/13048
	* config/tc-i386.c (handle_quad): Removed.
	(md_pseudo_table): Remove "quad".
	(tc_gen_reloc): Don't check BFD_RELOC_64 for disallow_64bit_reloc.
	(x86_dwarf2_addr_size): New.

	* config/tc-i386.h (x86_dwarf2_addr_size): New.
	(DWARF2_ADDR_SIZE): Likewise.

gas/testsuite/

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

	PR ld/13048
	* gas/i386/ilp32/ilp32.exp: Don't run inval.

	* gas/i386/ilp32/inval.l: Removed.
	* gas/i386/ilp32/inval.s: Likewise.

	* gas/i386/ilp32/quad.d: Expect R_X86_64_64 instead of
	R_X86_64_32.

	* gas/i386/ilp32/x86-64-pcrel.s: Add tests for movabs.
	* gas/i386/ilp32/x86-64-pcrel.d: Updated.

ld/testsuite/

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

	PR ld/13048
	* ld-x86-64/ilp32-6.d: New.
	* ld-x86-64/ilp32-6.s: Likewise.
	* ld-x86-64/ilp32-7.d: Likewise.
	* ld-x86-64/ilp32-7.s: Likewise.
	* ld-x86-64/ilp32-8.d: Likewise.
	* ld-x86-64/ilp32-8.s: Likewise.
	* ld-x86-64/ilp32-9.d: Likewise.
	* ld-x86-64/ilp32-9.s: Likewise.

	* ld-x86-64/x86-64.exp: Run ilp32-6, ilp32-7, ilp32-8 and ilp32-9.

opcodes/

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

	PR ld/13048
	* i386-dis.c (print_insn): Optimize info->mach check.
2011-08-01 23:04:23 +00:00
..
abs-k1om.d Add initial Intel K1OM support. 2011-07-22 20:22:38 +00:00
abs-l1om.d
abs.d
compressed1.d
compressed1.s
discarded1.d
discarded1.s
discarded1.t
dummy.s Don't allow mixing x64_32 with x86_64. 2011-01-03 18:16:46 +00:00
dwarfreloc1.s
dwarfreloc2.s
dwarfreloc.exp
dwarfreloc.rd
foo.s Don't allow mixing x64_32 with x86_64. 2011-01-03 18:16:46 +00:00
hidden1.d
hidden1.s
hidden2.d
hidden2.s
hidden3.d
hidden3.s
ia32-1.d Don't allow mixing x64_32 with x86_64. 2011-01-03 18:16:46 +00:00
ia32-2.d Replace n32 with x32. 2011-01-15 00:38:35 +00:00
ia32-3.d Don't allow mixing x64_32 with x86_64. 2011-01-03 18:16:46 +00:00
ilp32-1.d Rename --n32 to --x32. 2011-01-14 23:07:11 +00:00
ilp32-2.d Rename --n32 to --x32. 2011-01-14 23:07:11 +00:00
ilp32-3.d Rename --n32 to --x32. 2011-01-14 23:07:11 +00:00
ilp32-4.d PR ld/12570 2011-06-20 13:18:52 +00:00
ilp32-5.d Rename --n32 to --x32. 2011-01-14 23:07:11 +00:00
ilp32-5.s Handle R_X86_64_32 like R_X86_64_64 for ILP32. 2011-01-14 22:48:12 +00:00
ilp32-6.d Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-6.s Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-7.d Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-7.s Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-8.d Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-8.s Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-9.d Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-9.s Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
line.exp
lp64-1.d Don't allow mixing x64_32 with x86_64. 2011-01-03 18:16:46 +00:00
lp64-2.d Don't allow mixing x64_32 with x86_64. 2011-01-03 18:16:46 +00:00
lp64-3.d Replace n32 with x32. 2011-01-15 00:38:35 +00:00
mixed1a.s
mixed1b.s
mixed2a.s
mixed2b.s
nogot1.d
nogot1.s
nogot2.d
nogot2.s
pcrel8.d
pcrel16.d Fix misc x32 bugs. 2011-06-19 21:22:16 +00:00
pr12718.d Add testcases for PR ld/12718. 2011-05-01 13:38:22 +00:00
pr12718.s Add testcases for PR ld/12718. 2011-05-01 13:38:22 +00:00
pr12921.d Add testcases for PR ld/12921. 2011-06-24 14:03:15 +00:00
pr12921.s Add testcases for PR ld/12921. 2011-06-24 14:03:15 +00:00
protected1.d
protected1.s
protected2-k1om.d Add initial Intel K1OM support. 2011-07-22 20:22:38 +00:00
protected2-l1om.d
protected2.d
protected2.s
protected3-k1om.d Add initial Intel K1OM support. 2011-07-22 20:22:38 +00:00
protected3-l1om.d
protected3.d
protected3.s
simple.c Allow building x32 DSO from x86-64 object file. 2011-06-09 05:51:11 +00:00
split-by-file1.s
split-by-file2.s
split-by-file.rd
start.s Don't allow mixing x64_32 with x86_64. 2011-01-03 18:16:46 +00:00
tlsbin.dd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsbin.rd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsbin.s Handle R_X86_64_TPOFF64 in executable. 2011-05-26 13:22:04 +00:00
tlsbin.sd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsbin.td PR ld/12570 2011-06-20 13:18:52 +00:00
tlsbindesc.dd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsbindesc.rd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsbindesc.s
tlsbindesc.sd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsbindesc.td PR ld/12570 2011-06-20 13:18:52 +00:00
tlsbinpic.s
tlsdesc.dd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsdesc.pd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsdesc.rd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsdesc.s
tlsdesc.sd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsdesc.td PR ld/12570 2011-06-20 13:18:52 +00:00
tlsg.s
tlsg.sd
tlsgd1.dd
tlsgd1.s
tlsgd2.d
tlsgd2.s
tlsgd3.d
tlsgd3.s
tlsgd4.dd Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd4.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd5.dd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsgd5a.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd5b.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd6.dd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsgd6a.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd6b.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgdesc.dd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsgdesc.rd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsgdesc.s
tlsie1.dd
tlsie1.s
tlsie2.d
tlsie2.s
tlsie3.d
tlsie3.s
tlsie4.dd Supprt TLS x32 IE->LE transition. 2011-03-03 22:11:33 +00:00
tlsie4.s Supprt TLS x32 IE->LE transition. 2011-03-03 22:11:33 +00:00
tlsld1.dd
tlsld1.s
tlsld2.dd Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsld2.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsle1.d
tlsle1.s
tlslib.s
tlspic1.s
tlspic2.s
tlspic.dd PR ld/12570 2011-06-20 13:18:52 +00:00
tlspic.rd PR ld/12570 2011-06-20 13:18:52 +00:00
tlspic.sd PR ld/12570 2011-06-20 13:18:52 +00:00
tlspic.td PR ld/12570 2011-06-20 13:18:52 +00:00
tlspie1.d
tlspie1.s
undefined.s
unique1.d
unique1.s
x86-64-x32.rd Allow building x32 DSO from x86-64 object file. 2011-06-09 05:51:11 +00:00
x86-64.exp Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00