Fix attribute usage in libc-symbols.h
Andreas Jaeger
aj@suse.de
Tue Jul 22 19:34:00 GMT 2003
Here's one more place that could need this. Ok to commit?
Andreas
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.
============================================================
Index: elf/sofini.c
--- elf/sofini.c 30 Sep 1997 16:25:53 -0000 1.3
+++ elf/sofini.c 22 Jul 2003 19:30:05 -0000
@@ -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]) (vo
typedef unsigned int ui32 __attribute__ ((mode (SI)));
static ui32 __FRAME_END__[1]
- __attribute__ ((unused, section (".eh_frame")))
+ __attribute__ ((used, section (".eh_frame")))
= { 0 };
#endif
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030722/12f9b200/attachment.sig>
More information about the Libc-alpha
mailing list