From 13f6812ffb5b8ad8c343d49e0be7e5ae0d31dc8e Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 3 Nov 2009 23:52:01 +0100 Subject: Make name of libgcc_s library configurable --- sysdeps/generic/framestate.c | 3 ++- sysdeps/generic/libgcc_s.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 sysdeps/generic/libgcc_s.h (limited to 'sysdeps') diff --git a/sysdeps/generic/framestate.c b/sysdeps/generic/framestate.c index a912a8c..80375bb 100644 --- a/sysdeps/generic/framestate.c +++ b/sysdeps/generic/framestate.c @@ -24,6 +24,7 @@ #define __frame_state_for fallback_frame_state_for #include #undef __frame_state_for +#include 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 0000000..e74a103 --- /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" -- cgit v1.1