about summary refs log tree commit diff
path: root/elf/soinit.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-02-24 22:57:38 +0000
committerRoland McGrath <roland@gnu.org>2006-02-24 22:57:38 +0000
commit03e81bcee66fe606d4f2b4b363b0fff47a29b247 (patch)
tree8023a402c262b0f742f97d4ace4172b0a00f1fa1 /elf/soinit.c
parentc5132ca1c35e1c0e93b9ba8eda575bb57c892b78 (diff)
downloadglibc-03e81bcee66fe606d4f2b4b363b0fff47a29b247.tar.gz
glibc-03e81bcee66fe606d4f2b4b363b0fff47a29b247.tar.xz
glibc-03e81bcee66fe606d4f2b4b363b0fff47a29b247.zip
* elf/sofini.c (__FRAME_END__): Mark as const.
	* elf/soinit.c (__EH_FRAME_BEGIN__): Likewise.  Add used attribute.
Diffstat (limited to 'elf/soinit.c')
-rw-r--r--elf/soinit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/soinit.c b/elf/soinit.c
index 3656b1d9d8..c0a881ef5d 100644
--- a/elf/soinit.c
+++ b/elf/soinit.c
@@ -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