Skip to contentSkip to conversation

Compile Error in 2.4.7-ac10

PATCH Andrzej Krzysztofowicz 1 participant 1 message Aug 10, 2001

lore
Share & tools
lore
#0 lore raw

Hi,
What is the rason of the following messages:

Quoted 6 lines

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -march=i586 -c -o traps.o traps.c
{standard input}: Assembler messages:
{standard input}:451: Error: suffix or operands invalid for jmp' {standard input}:537: Error: suffix or operands invalid for jmp'

or others with newer binutils:

: {standard input}: Assembler messages:
: {standard input}:461: Warning: indirect jmp without *' : {standard input}:547: Warning: indirect jmp without *'

?

The following one-liner fixes them generating identical binary code with egcs-2.91.66 and binutils-2.10.91.0.4.

Similar warnings about lcall also appear and seem to be fixable the same way.

Andrzej

******************

arch/i386/kernel/traps.c +1 -1
diff -ur linux-2.4.7-ac10/arch/i386/kernel/traps.c linux/arch/i386/kernel/traps.c
@@ -282,7 +282,7 @@
 		printk(KERN_CRIT "PNPBIOS fault.. attempting recovery.\n");
 		__asm__ volatile(
 			"movl %0, %%esp\n\t"
-			"jmp %1\n\t"
+			"jmp *%1\n\t"
 			: "=a" (pnp_bios_fault_esp), "=b" (pnp_bios_fault_eip));
 		panic("do_trap: can't hit this");
 	}
Signature · 4 lines
=======================================================================
  Andrzej M. Krzysztofowicz               [email protected]
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk