aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-07-22 19:37:41 +0000
committerAndreas Jaeger <aj@suse.de>2003-07-22 19:37:41 +0000
commit422514503d43363a4497e7ed8ab6fcd328da4653 (patch)
tree651882b60a5d2e54c852d0e713d4bf8efc56f512
parent9fb978c8aeebe62292acba1f004d40f2ec58adcc (diff)
downloadglibc-422514503d43363a4497e7ed8ab6fcd328da4653.zip
glibc-422514503d43363a4497e7ed8ab6fcd328da4653.tar.gz
glibc-422514503d43363a4497e7ed8ab6fcd328da4653.tar.bz2
Update.
* elf/sofini.c (__FRAME_END__): Use attribute used so that gcc will not optimize it away. (__DTOR_END__): Likewise. (__CTOR_END__): Likewise.
-rw-r--r--ChangeLog5
-rw-r--r--elf/sofini.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 3fec06a..aa42b7b 100644
--- 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.
diff --git a/elf/sofini.c b/elf/sofini.c
index 077399f..16e77e7 100644
--- a/elf/sofini.c
+++ b/elf/sofini.c
@@ -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