linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compile Error in 2.4.7-ac10
@ 2001-08-10 13:36 Andrzej Krzysztofowicz
  0 siblings, 0 replies; 3+ messages in thread
From: Andrzej Krzysztofowicz @ 2001-08-10 13:36 UTC (permalink / raw)
  To: Alan Cox, kernel list

Hi,
   What is the rason of the following messages:

> 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

******************
diff -ur linux-2.4.7-ac10/arch/i386/kernel/traps.c linux/arch/i386/kernel/traps.c
--- linux-2.4.7-ac10/arch/i386/kernel/traps.c	Sun Aug  5 21:15:51 2001
+++ linux/arch/i386/kernel/traps.c	Fri Aug 10 11:05:03 2001
@@ -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");
 	}


-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Compile Error in 2.4.7-ac10
  2001-08-09 15:14 Andrew Ferguson
@ 2001-08-09 16:51 ` andrew_ferguson
  0 siblings, 0 replies; 3+ messages in thread
From: andrew_ferguson @ 2001-08-09 16:51 UTC (permalink / raw)
  To: linux-kernel


Attempting to compile the last several 2.4.7-ac kernels (not sure when it
started, sorry) has led to the following errors:

make[1]: Entering directory `/usr/src/linux/arch/i386/kernel'
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'
{standard input}:621: Error: suffix or operands invalid for `jmp'
{standard input}:705: Error: suffix or operands invalid for `jmp'
{standard input}:795: Error: suffix or operands invalid for `jmp'
{standard input}:870: Error: suffix or operands invalid for `jmp'
{standard input}:952: Error: suffix or operands invalid for `jmp'
{standard input}:1023: Error: suffix or operands invalid for `jmp'
{standard input}:1094: Error: suffix or operands invalid for `jmp'
{standard input}:1165: Error: suffix or operands invalid for `jmp'
{standard input}:1236: Error: suffix or operands invalid for `jmp'
{standard input}:1316: Error: suffix or operands invalid for `jmp'
make[1]: *** [traps.o] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2

Lines 283-286 in the file arch/i386/kernel/traps.c are the source of this
problem. I can give more information as needed. Thanks.

_________________________________________________
Andrew Ferguson
http://owsla.cjb.net | andrew@owsla.cjb.net
Tintin Webring: http://owsla.cjb.net/tintin/ring/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Compile Error in 2.4.7-ac10
@ 2001-08-09 15:14 Andrew Ferguson
  2001-08-09 16:51 ` andrew_ferguson
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Ferguson @ 2001-08-09 15:14 UTC (permalink / raw)
  To: linux-kernel


Attempting to compile the last several 2.4.7-ac kernels (not sure when it
started, sorry) has led to the following errors:

make[1]: Entering directory `/usr/src/linux/arch/i386/kernel'
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'
{standard input}:621: Error: suffix or operands invalid for `jmp'
{standard input}:705: Error: suffix or operands invalid for `jmp'
{standard input}:795: Error: suffix or operands invalid for `jmp'
{standard input}:870: Error: suffix or operands invalid for `jmp'
{standard input}:952: Error: suffix or operands invalid for `jmp'
{standard input}:1023: Error: suffix or operands invalid for `jmp'
{standard input}:1094: Error: suffix or operands invalid for `jmp'
{standard input}:1165: Error: suffix or operands invalid for `jmp'
{standard input}:1236: Error: suffix or operands invalid for `jmp'
{standard input}:1316: Error: suffix or operands invalid for `jmp'
make[1]: *** [traps.o] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2

Lines 283-286 in the file arch/i386/kernel/traps.c are the source of this
problem. I can give more information as needed. Thanks.

_________________________________________________
Andrew Ferguson
http://owsla.cjb.net | andrew@owsla.cjb.net
AfterStep WM Project: http://www.afterstep.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-08-10 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-10 13:36 Compile Error in 2.4.7-ac10 Andrzej Krzysztofowicz
  -- strict thread matches above, loose matches on Subject: below --
2001-08-09 15:14 Andrew Ferguson
2001-08-09 16:51 ` andrew_ferguson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).