Hi, another question:

I am trying to compile a kernel module for 2.2.19, and I am getting a
weird warning from assembler:

/tmp/ccTe0mDh.s: Assembler messages:
/tmp/ccTe0mDh.s:9: Warning: Ignoring changed section attributes for .modinfo

This happens for *any* code, including trivial "hello world". It
happens on at least two machines (very similar systems though),
whether actually running the custom-compiled 2.2.19 or not (running
2.4.9-31 from Red Hat). Nor does it depend on the compilation flags
that I use (e.g. optimization).

I have not found anything useful in Google (quite a few people asked
but got no answers) or in the various module-writing docs. Is it some
mismatch between gcc and as versions?  Can anyone point me in the
right direction?

There are no .modinfo files anywhere on the system (Linux 2.4.9-31
i686), touching .modinfo in the current directory does not help.

There are /boot/module-info-2.4* files for the kernels installed
from RPMs, but not for the custom-compiled 2.2.19. I suspect this
is Red Hat's trickery. Is it related?

Is it related to modinfo(8)? I didn't find anything useful in the
Documentation directory.

The full compile log follows. The compilation actually succeeds.

/usr/bin/kgcc -v -Wall -O3 -nostdinc -isystem /usr/src/linux-2.2.19/include -isystem 
/usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/include -I../include -DMODULE 
-D__KERNEL__ -DLINUX   -c -o foo.o foo.c
Reading specs from /usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
 /usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/cpp -lang-c -nostdinc -v 
-I../include -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di386 
-D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix 
-D__i386 -D__linux -Asystem(posix) -D__OPTIMIZE__ -Wall -Asystem(unix) -Acpu(i386) 
-Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ -DMODULE -D__KERNEL__ 
-DLINUX -isystem /usr/src/linux-2.2.19/include -isystem 
/usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/include foo.c /tmp/ccDHujkf.i
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 ../include
 /usr/src/linux-2.2.19/include
 /usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/include
End of search list.
 /usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/cc1 /tmp/ccDHujkf.i -quiet -dumpbase 
foo.c -O3 -Wall -version -o /tmp/ccTe0mDh.s
GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386-glibc21-linux) 
compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
 as -V -Qy -o foo.o /tmp/ccTe0mDh.s
GNU assembler version 2.11.90.0.8 (i386-redhat-linux) using BFD version 2.11.90.0.8
/tmp/ccTe0mDh.s: Assembler messages:
/tmp/ccTe0mDh.s:9: Warning: Ignoring changed section attributes for .modinfo

-- 
Oleg Goldshmidt | [EMAIL PROTECTED] 
[Lisp] is the only computer language that is beautiful. 
                      - Neal Stephenson 

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to