lkml.org 
[lkml]   [1998]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: missing prefix warning in 2.1.106 on i386


On Sun, 14 Jun 1998, Albert Cranford wrote:

> Does anyone else get this warning? I applied Alan Modra's patch
> for arch/i386/lib/checksum.c but no change. I didn't get this
> in previous correction version.

mis-applied patch ?

> make[2]: Entering directory `/usr/src/linux/arch/i386/lib'
>
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
> -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o checksum.o
> checksum.c
> {standard input}: Assembler messages:
> {standard input}:143: Warning: warning: missing prefix `*' in absolute
> indirect address, maybe misassembled!

When you get these sorts of warnings or errors from the assembler, compile
using -S (and without -o <file>) to find the instruction that the
assembler is complaining about. *

ie. for the above do
cd /usr/src/linux/arch/i386/lib
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2\
-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2\
-malign-jumps=2 -malign-functions=2 -DCPU=686 -S checksum.c

Now have a look at line 143 of the resulting checksum.s file. You should
be able to trace this back to the offending assembly instruction in
checksum.c

* Note. You need to use -E rather than -S if gcc is processing .S assembly
files rather than .c files.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.059 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site