mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrzej Krzysztofowicz <ankry@green.mif.pg.gda.pl>
To: alan@lxorguk.ukuu.org.uk (Alan Cox),
	linux-kernel@vger.kernel.org (kernel list)
Subject: Compile Error in 2.4.7-ac10
Date: Fri, 10 Aug 2001 15:36:21 +0200 (CEST)	[thread overview]
Message-ID: <200108101336.PAA01313@green.mif.pg.gda.pl> (raw)

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

             reply	other threads:[~2001-08-10 13:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-10 13:36 Andrzej Krzysztofowicz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-08-09 15:14 Andrew Ferguson
2001-08-09 16:51 ` andrew_ferguson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200108101336.PAA01313@green.mif.pg.gda.pl \
    --to=ankry@green.mif.pg.gda.pl \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®