about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2009-11-03 23:52:01 +0100
committerAndreas Schwab <schwab@linux-m68k.org>2009-11-03 23:52:01 +0100
commit13f6812ffb5b8ad8c343d49e0be7e5ae0d31dc8e (patch)
treee57278e0d283a1c6dd1d6e2623c531d84d12bb0e /sysdeps
parentcc49a5a8837be1f9307b167d9bf4399798a847c9 (diff)
downloadglibc-13f6812ffb5b8ad8c343d49e0be7e5ae0d31dc8e.tar.gz
glibc-13f6812ffb5b8ad8c343d49e0be7e5ae0d31dc8e.tar.xz
glibc-13f6812ffb5b8ad8c343d49e0be7e5ae0d31dc8e.zip
Make name of libgcc_s library configurable
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/framestate.c3
-rw-r--r--sysdeps/generic/libgcc_s.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/generic/framestate.c b/sysdeps/generic/framestate.c
index a912a8c375..80375bba98 100644
--- a/sysdeps/generic/framestate.c
+++ b/sysdeps/generic/framestate.c
@@ -24,6 +24,7 @@
 #define __frame_state_for fallback_frame_state_for
 #include <unwind-dw2.c>
 #undef __frame_state_for
+#include <libgcc_s.h>
 
 typedef struct frame_state * (*framesf)(void *pc, struct frame_state *);
 struct frame_state *__frame_state_for (void *pc,
@@ -36,7 +37,7 @@ __frame_state_for (void *pc, struct frame_state *frame_state)
 
   if (frame_state_for == NULL)
     {
-      void *handle = __libc_dlopen ("libgcc_s.so.1");
+      void *handle = __libc_dlopen (LIBGCC_S_SO);
 
       if (handle == NULL
 	  || (frame_state_for
diff --git a/sysdeps/generic/libgcc_s.h b/sysdeps/generic/libgcc_s.h
new file mode 100644
index 0000000000..e74a1034ca
--- /dev/null
+++ b/sysdeps/generic/libgcc_s.h
@@ -0,0 +1,2 @@
+/* Name of libgcc_s library provided by gcc.  */
+#define LIBGCC_S_SO "libgcc_s.so.1"