diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-09-08 12:15:25 +0200 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2011-09-08 14:54:49 -0400 |
commit | 42cd15f704e055d5f0ae8dda9433a8642977b9c8 (patch) | |
tree | a021a73c7dfef59356320d7795ec3157863c4776 | |
parent | aa57556f60c89eb84f65cb55e0215ff9be97dbec (diff) |
support old as
/tmp/ccBWbFEv.s: Assembler messages:
/tmp/ccBWbFEv.s:447: Error: suffix or operands invalid for `nop'
make: *** [features.o] Error 1
# as --version
GNU assembler 2.15.92.0.2 20040927
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `i386-redhat-linux'.
So maybe you could hardcode "nopl (%eax)" ?
-rw-r--r-- | features.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -469,7 +469,7 @@ static void test_longnop(void) died = sigsetjmp(out, 1); if (!died) - asm volatile("nopl 0(%eax)"); + asm volatile(".byte 0x0f,0x1f,0x00 /* nopl 0(%eax) */"); printf("Long NOPs supported: %s\n", died ? "no" : "yes"); } |