Disallow 64bit relocations in x32 mode.
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 16 Jan 2011 17:06:12 +0000 (17:06 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 16 Jan 2011 17:06:12 +0000 (17:06 +0000)
commit862be3fb9a6de2af14ff2213d599a0aff519ac19
tree7f852c91060cc24fbce9d7b4d8c4f7aa91a2d1f0
parentf9a63d49c74b7cc540a0e94d69411676f4332a42
Disallow 64bit relocations in x32 mode.

gas/

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

* config/tc-i386.c (disallow_64bit_disp): Renamed to ...
(disallow_64bit_reloc): This.
(md_assemble): Don't check movabs for x32 mode here.
(i386_target_format): Updated.
(tc_gen_reloc): Check if 64bit relocations are allowed.

gas/testsuite/

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

* gas/i386/ilp32/immed64.s: New.
* gas/i386/ilp32/reloc64.s: Likewise.
* gas/i386/ilp32/x86-64-pcrel.s: Likewise.

* gas/i386/ilp32/inval.s: Add more tests.

* gas/i386/ilp32/immed64.d: Updated.
* gas/i386/ilp32/inval.l: Likewise.
* gas/i386/ilp32/reloc64.d: Likewise.
* gas/i386/ilp32/x86-64-pcrel.d: Likewise.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/ilp32/immed64.d
gas/testsuite/gas/i386/ilp32/immed64.s [new file with mode: 0644]
gas/testsuite/gas/i386/ilp32/inval.l
gas/testsuite/gas/i386/ilp32/inval.s
gas/testsuite/gas/i386/ilp32/reloc64.d
gas/testsuite/gas/i386/ilp32/reloc64.s [new file with mode: 0644]
gas/testsuite/gas/i386/ilp32/x86-64-pcrel.d
gas/testsuite/gas/i386/ilp32/x86-64-pcrel.s [new file with mode: 0644]