binutils-gdb/ld/testsuite
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
..
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 gas/ 2011-06-02 15:32:10 +00:00
ld-auto-import
ld-bootstrap
ld-cdtest
ld-checks
ld-cris * ld-cris/tls-e-tpoffcomm1.d: Adjust for second PR12763 change, 2011-05-24 00:06:17 +00:00
ld-crx
ld-cygwin
ld-d10v
ld-discard
ld-elf Also check ignored "-z relro". 2011-07-14 14:54:53 +00:00
ld-elfcomm
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
ld-fastcall
ld-frv
ld-gc * ld-elf/elf.exp: Force 32-bit start address for alpha. 2011-03-30 17:41:36 +00:00
ld-h8300
ld-i386 ld/testsuite/ 2011-07-27 20:58:14 +00:00
ld-ia64
ld-ifunc ELFOSABI_GNU 2011-07-03 13:37:09 +00:00
ld-libs
ld-linkonce
ld-m68hc11
ld-m68k * ld-m68k/tls-gd-ie-1.d: Stabilize test. 2011-04-15 09:58:23 +00:00
ld-mep
ld-mips-elf bfd/ 2011-07-24 14:20:15 +00:00
ld-misc
ld-mmix PR ld/12815 2011-07-25 01:16:05 +00:00
ld-mn10300
ld-pe * dw2gencfi.c (dwcfi_seg_list): New struct. 2011-04-26 15:28:08 +00:00
ld-pie
ld-plugin bfd/ChangeLog: 2011-05-07 14:29:10 +00:00
ld-powerpc bfd/ 2011-07-26 01:57:18 +00:00
ld-s390
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
ld-shared Fix misc x32 bugs. 2011-06-19 21:22:16 +00:00
ld-sparc
ld-spu
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
ld-versados
ld-vxworks
ld-x86-64 Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ld-xc16x
ld-xstormy16
ld-xtensa
lib bfd/ 2011-07-24 14:20:15 +00:00
ChangeLog Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-9303