* elf/sofini.c (__FRAME_END__): Mark as const.

* elf/soinit.c (__EH_FRAME_BEGIN__): Likewise.  Add used attribute.
This commit is contained in:
Roland McGrath 2006-02-24 22:57:38 +00:00
parent c5132ca1c3
commit 03e81bcee6
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2006-02-24 Roland McGrath <roland@redhat.com>
* elf/sofini.c (__FRAME_END__): Mark as const.
* elf/soinit.c (__EH_FRAME_BEGIN__): Likewise. Add used attribute.
2006-02-23 Roland McGrath <roland@redhat.com> 2006-02-23 Roland McGrath <roland@redhat.com>
* include/libc-symbols.h: Fix comment typo. * include/libc-symbols.h: Fix comment typo.

View File

@ -12,6 +12,6 @@ static void (*const __DTOR_END__[1]) (void)
this would be the 'length' field in a real FDE. */ this would be the 'length' field in a real FDE. */
typedef unsigned int ui32 __attribute__ ((mode (SI))); typedef unsigned int ui32 __attribute__ ((mode (SI)));
static ui32 __FRAME_END__[1] static const ui32 __FRAME_END__[1]
__attribute__ ((used, section (".eh_frame"))) __attribute__ ((used, section (".eh_frame")))
= { 0 }; = { 0 };

View File

@ -20,8 +20,8 @@ run_hooks (void (*const list[]) (void))
(**list) (); (**list) ();
} }
static char __EH_FRAME_BEGIN__[] static const char __EH_FRAME_BEGIN__[]
__attribute__ ((section (".eh_frame"))) __attribute__ ((used, section (".eh_frame")))
= { }; = { };
/* This function will be called from _init in init-first.c. */ /* This function will be called from _init in init-first.c. */