Re: [PATCH] eliminate warnings in generated module files

From: Richard Henderson (rth@twiddle.net)
Date: Wed Feb 19 2003 - 01:16:56 EST


On Tue, Feb 18, 2003 at 09:16:35PM -0800, Linus Torvalds wrote:
> Some people are still using 2.95, I think anything past that is long since
> unsupported and not worth worrying about.

[kanga:~] cat z.c
static char foo []
  __attribute__((unused))
  __attribute__((section(".data.foo")))
  = "asdfasdf";
[kanga:~] /usr/bin/gcc -Wall -c z.c
[kanga:~] /usr/bin/gcc -v
Reading specs from /usr/lib/gcc-lib/alpha-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
[kanga:~] objdump -h z.o | grep foo
  3 .data.foo 00000009 0000000000000000 0000000000000000 00000040 2**0

Seems to work, both wrt the warning message and
honoring the section directive.

r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Feb 23 2003 - 22:00:25 EST