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: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: Large number of gas warnings compiling linux kernel....
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Wed, 7 Jun 2000 09:55:08 +1000 (EST)
- cc: scottb at netwinder dot org, binutils at sourceware dot cygnus dot com, gcc at gcc dot gnu dot org
On Tue, 6 Jun 2000, Nick Clifton wrote:
> in gcc/config/arm/linux-elf.h). There is (rather grungy) workaround
> however - put a comment character at the end of the section's name
> when defining the attribute:
>
> const char __module_kernel_version[] __attribute__((section(".modinfo\n\t#"))) =
> "kernel_version=2.2.14";
I like it! It should work on any architecture that the linux kernel
supports too, as `#' is in either comment_chars[] or line_comment_chars[].
In fact the only gas target that this trick will fail on is tic30.
BTW, Scott you can blame me for adding these warnings. See
http://gcc.gnu.org/ml/gcc-bugs/2000-04/msg00264.html for a good reason why
gas should warn.
Regards, Alan Modra
--
Linuxcare. Support for the Revolution.