OSDN Git Service

Don't allow movabs with relocation in x32 mode.
authorhjl <hjl>
Sun, 16 Jan 2011 00:48:01 +0000 (00:48 +0000)
committerhjl <hjl>
Sun, 16 Jan 2011 00:48:01 +0000 (00:48 +0000)
commit78ac0df1f33c08684b16bf96b19261c5ff3fd7ad
tree4934f3cf009e52d981e29a1adff1e1b745f47d59
parentcdf0f21bb7d6cde394a314257a0f044a09eef029
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]