summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/sofini.c6
-rw-r--r--elf/soinit.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/elf/sofini.c b/elf/sofini.c
index 55b9b1f081..5e06f0ca92 100644
--- a/elf/sofini.c
+++ b/elf/sofini.c
@@ -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 };
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