Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
	will not optimize it away.
	(__DTOR_END__): Likewise.
	(__CTOR_END__): Likewise.
  • Loading branch information
Andreas Jaeger committed Jul 22, 2003
1 parent 9fb978c commit 4225145
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions elf/sofini.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 4225145

Please sign in to comment.