]> sourceware.org Git - glibc.git/commitdiff
Update.
authorAndreas Jaeger <aj@suse.de>
Tue, 22 Jul 2003 19:37:41 +0000 (19:37 +0000)
committerAndreas Jaeger <aj@suse.de>
Tue, 22 Jul 2003 19:37:41 +0000 (19:37 +0000)
* elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
will not optimize it away.
(__DTOR_END__): Likewise.
(__CTOR_END__): Likewise.

ChangeLog
elf/sofini.c

index 3fec06aa80818fb99d67fc7cc477f4dc9466f54f..aa42b7bcebae77ceaa7966913ab5cafb0ac76729 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2003-07-22  Andreas Jaeger  <aj@suse.de>
 
+       * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
+       will not optimize it away.
+       (__DTOR_END__): Likewise.
+       (__CTOR_END__): Likewise.
+
        * include/libc-symbols.h (_elf_set_element): Use attribute used so
        that gcc will not optimize it away.
        (link_warning): Likewise.
index 077399f0ced0fe1dc7fdcdfbe6f80fb4ee679df6..16e77e72ad43f4e521547395b39aea8930bf3836 100644 (file)
@@ -2,10 +2,10 @@
    null pointer words in the `.ctors' and `.dtors' sections.  */
 
 static void (*const __CTOR_END__[1]) (void)
-     __attribute__ ((unused, section (".ctors")))
+     __attribute__ ((used, section (".ctors")))
      = { 0 };
 static void (*const __DTOR_END__[1]) (void)
-     __attribute__ ((unused, section (".dtors")))
+     __attribute__ ((used, section (".dtors")))
      = { 0 };
 
 #ifdef HAVE_DWARF2_UNWIND_INFO
@@ -14,6 +14,6 @@ static void (*const __DTOR_END__[1]) (void)
 
 typedef unsigned int ui32 __attribute__ ((mode (SI)));
 static ui32 __FRAME_END__[1]
-     __attribute__ ((unused, section (".eh_frame")))
+     __attribute__ ((used, section (".eh_frame")))
      = { 0 };
 #endif
This page took 0.053713 seconds and 5 git commands to generate.