i386: Support .code64 directive only with 64-bit bfd
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 24 Oct 2017 14:47:32 +0000 (07:47 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 24 Oct 2017 14:47:43 +0000 (07:47 -0700)
commitda5f19a2534936376228943de85fdd60f6ddd839
tree5b1bdcd80212000f7ebbd9d2b0094306ce0a3825
parent5033013f17524964564dac5d422739ae5214729e
i386: Support .code64 directive only with 64-bit bfd

Without 64-bit bfd, we can't properly support .code64 directive in
32-bit mode.

* config/tc-i386.c (md_pseudo_table): Add .code64 directive
only if BFD64 is defined.
* testsuite/gas/i386/code64-inval.l: New file.
* gas/testsuite/gas/i386/code64-inval.s: Likewise.
* gas/testsuite/gas/i386/code64.d: Likewise.
* gas/testsuite/gas/i386/code64.s: Likewise.
* testsuite/gas/i386/i386.exp: Run mixed-mode-reloc32,
att-regs, intel-regs, intel-expr and string-ok tests only if
assembler supports x86-64.  Run code64 and code64-inval.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/code64-inval.l [new file with mode: 0644]
gas/testsuite/gas/i386/code64-inval.s [new file with mode: 0644]
gas/testsuite/gas/i386/code64.d [new file with mode: 0644]
gas/testsuite/gas/i386/code64.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp
This page took 0.02605 seconds and 4 git commands to generate.