This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Large number of gas warnings compiling linux kernel....
- To: Scott Bambrough <scottb at netwinder dot org>
- Subject: Re: Large number of gas warnings compiling linux kernel....
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Tue, 6 Jun 2000 08:30:30 -0700
- Cc: binutils mailing list <binutils at sourceware dot cygnus dot com>,GCC Mailing List <gcc at gcc dot gnu dot org>, Nick Clifton <nickc at cygnus dot com>
- References: <393D11F5.874D5D1@netwinder.org>
On Tue, Jun 06, 2000 at 11:00:05AM -0400, Scott Bambrough wrote:
> Hi guys,
>
> The following code is a reduced example of what I get from compiling a "C"
> file with only one line: "#include <linux/module.h>". I'm not sure what is
> correct here. I'm sure the compiler has no idea of what the attributes on
> .modinfo should be or that it has been declared since it is declared in an
> __asm__ statement. I think this particular code works by luck, based on
> what the assembler does. Is there a more appropriate way to declare a
> a section for the compiler? This code generates a large number of warnings
> with the mainline gas compiling the linux kernel.
>
I thought the kernel source did that on purpose to prevent the compiler
set the "wrong" attributes on the .modinfo section. But the new
assembler complains about it.
H.J.