This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Warning: Ignoring changed section attributes for .gnu.warning.sigstack

>>>>> Andreas Schwab writes:

AS> Andreas Jaeger <> writes:
AS> |> Hi,
AS> |> 
AS> |> I've noticed a small problem while compiling glibc and would welcome
AS> |> your input.
AS> |> 
AS> |> The appended simple program prints a warning with gcc 2.96 CVS current:
AS> |> 
AS> |> $ /opt/gcc-2.96/bin/gcc -Wall -c test-warning.c -save-temps
AS> |> test-warning.s: Assembler messages:
AS> |> test-warning.s:19: Warning: Ignoring changed section attributes for .gnu.warning.sigstack

AS> This is due to a change in the assembler, which has already been discussed
AS> on the binutils list (it also affects the kernel).  See
AS> for the
AS> head of the thread.

Thanks for the hint.  Nick Clifton suggested:

> There is (rather grungy) workaround however - put a comment character
> at the end of the section's name when defining the attribute:

I'm appending a patch which does this and silences the warnings for
me.  What do you think?  Or is there a better workaround?

Now the assembler output is:
	.section .gnu.warning.sigstack; .previous
	.section	.gnu.warning.sigstack


Index: include/libc-symbols.h
--- include/libc-symbols.h	2000/03/31 05:44:26	1.10
+++ include/libc-symbols.h	2000/06/09 12:17:17
@@ -179,7 +179,7 @@
 #  define link_warning(symbol, msg)			\
   __make_section_unallocated (".gnu.warning." #symbol)	\
   static const char __evoke_link_warning_##symbol[]	\
-    __attribute__ ((section (".gnu.warning." #symbol))) = msg;
+    __attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg;
 # else
 #  define link_warning(symbol, msg)		\
   asm(".stabs \"" msg "\",30,0,0,0\n"	\

 Andreas Jaeger
  SuSE Labs

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]