]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* elf/sofini.c (__FRAME_END__): Mark as const.
authorRoland McGrath <roland@gnu.org>
Fri, 24 Feb 2006 22:57:38 +0000 (22:57 +0000)
committerRoland McGrath <roland@gnu.org>
Fri, 24 Feb 2006 22:57:38 +0000 (22:57 +0000)
* elf/soinit.c (__EH_FRAME_BEGIN__): Likewise.  Add used attribute.

ChangeLog
elf/sofini.c
elf/soinit.c

index f9386639bdb806ecd83f52c1fb1fe27190afe94a..715c6b7a44680f53f50efd2d948df2df564898bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * include/libc-symbols.h: Fix comment typo.
index 55b9b1f0816e3388da442342fa0d57bbe0114cba..5e06f0ca92b33b6969810901dd9045be7466f11e 100644 (file)
@@ -12,6 +12,6 @@ static void (*const __DTOR_END__[1]) (void)
    this would be the 'length' field in a real FDE.  */
 
 typedef unsigned int ui32 __attribute__ ((mode (SI)));
-static ui32 __FRAME_END__[1]
-     __attribute__ ((used, section (".eh_frame")))
-     = { 0 };
+static const ui32 __FRAME_END__[1]
+  __attribute__ ((used, section (".eh_frame")))
+  = { 0 };
index 3656b1d9d89d90ba903faec6e7c1db63a8c41f10..c0a881ef5dea810c701e15da016aa144ff88f139 100644 (file)
@@ -20,9 +20,9 @@ run_hooks (void (*const list[]) (void))
     (**list) ();
 }
 
-static char __EH_FRAME_BEGIN__[]
-     __attribute__ ((section (".eh_frame")))
-     = { };
+static const char __EH_FRAME_BEGIN__[]
+  __attribute__ ((used, section (".eh_frame")))
+  = { };
 
 /* This function will be called from _init in init-first.c.  */
 void