Don't allow movabs with relocation in x32 mode.
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 15 Jan 2011 15:48:02 +0000 (15:48 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 15 Jan 2011 15:48:02 +0000 (15:48 +0000)
commit7f56bc95d624e45cf2ff893d1b1fb4b44c49996f
tree65a29682df3c99d4d9ca7ef875f1781f48a793e2
parent9d53781512bf5608bfc256dbf8a13c7c0ca7d591
Don't allow movabs with relocation in x32 mode.

gas/

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

* config/tc-i386.c (disallow_64bit_disp): New.
(x86_elf_abi): Replace X86_64_LP64_ABI/X86_64_ILP32_ABI with
X86_64_ABI/X86_64_X32_ABI.
(md_assemble): Don't allow movabs with relocation in x32 mode.
(i386_target_format): Updated.

gas/testsuite/

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

* gas/i386/ilp32/ilp32.exp: Run inval.

* gas/i386/ilp32/inval.l: New.
* gas/i386/ilp32/inval.s: Likewise.
* gas/i386/ilp32/x86-64.s: Likewise.

* gas/i386/ilp32/x86-64.d: Don't use ../x86_64.s.  Updated.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/ilp32/ilp32.exp
gas/testsuite/gas/i386/ilp32/inval.l [new file with mode: 0644]
gas/testsuite/gas/i386/ilp32/inval.s [new file with mode: 0644]
gas/testsuite/gas/i386/ilp32/x86-64.d
gas/testsuite/gas/i386/ilp32/x86-64.s [new file with mode: 0644]