about summary refs log tree commit diff
path: root/elf/soinit.c
diff options
context:
space:
mode:
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