Don't allow movabs with relocation in x32 mode.
commitbf5018939a7cebc8edb0db51c1ec1c6f89854d44
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 15 Jan 2011 15:48:01 +0000 (15 15:48 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 15 Jan 2011 15:48:01 +0000 (15 15:48 +0000)
treeceff01d7d73fdfe962a7c5381e18af01e327c589
parentb5bb05baa8e34ae119979e772d53ce63c9988edd
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]