summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils-2.17/gas/config/tc-i386.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-04-24 20:19:26 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-04-24 20:19:26 +0000
commit5a1b2a93cd7448f144e221fa585f2d35f3be3fe6 (patch)
treeb0b7eb717a326fb0d797e2e3b6b7b450cdae863e /gnu/usr.bin/binutils-2.17/gas/config/tc-i386.c
parent917667791cb7410d22e23fdfd33147d2774974e1 (diff)
A first attempt at merging our local changes and fixes into the 2.17 codebase.
ld(1) needs a lot more work, as the upstream code evolved significantly since 2.15, mostly due to changes in PIE binaries layout, and we had already diverged significantly to implement W^X.
Diffstat (limited to 'gnu/usr.bin/binutils-2.17/gas/config/tc-i386.c')
-rw-r--r--gnu/usr.bin/binutils-2.17/gas/config/tc-i386.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils-2.17/gas/config/tc-i386.c b/gnu/usr.bin/binutils-2.17/gas/config/tc-i386.c
index be384bc99a7..3c5551e038c 100644
--- a/gnu/usr.bin/binutils-2.17/gas/config/tc-i386.c
+++ b/gnu/usr.bin/binutils-2.17/gas/config/tc-i386.c
@@ -202,7 +202,8 @@ const char extra_symbol_chars[] = "*%-(["
&& !defined (TE_LINUX) \
&& !defined (TE_NETWARE) \
&& !defined (TE_FreeBSD) \
- && !defined (TE_NetBSD)))
+ && !defined (TE_NetBSD) \
+ && !defined (TE_OpenBSD)))
/* This array holds the chars that always start a comment. If the
pre-processor is disabled, these aren't very useful. The option
--divide will remove '/' from this list. */
@@ -3491,7 +3492,7 @@ output_insn ()
/* All opcodes on i386 have either 1 or 2 bytes. Merom New
Instructions have 3 bytes. We may use one more higher byte
to specify a prefix the instruction requires. */
- if ((i.tm.cpu_flags & CpuMNI) != 0)
+ if ((i.tm.cpu_flags & (CpuMNI|CpuAES|CpuPCLMUL)) != 0)
{
if (i.tm.base_opcode & 0xff000000)
{
@@ -3532,7 +3533,7 @@ check_prefix:
}
else
{
- if ((i.tm.cpu_flags & CpuMNI) != 0)
+ if ((i.tm.cpu_flags & (CpuMNI|CpuAES|CpuPCLMUL)) != 0)
{
p = frag_more (3);
*p++ = (i.tm.base_opcode >> 16) & 0xff;