summaryrefslogtreecommitdiff
path: root/libubacktrace/arm/backtrace.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-23 09:54:02 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-03-14 22:49:25 +0100
commit0007638b54f3741e5a5e09235fed1e96a511f245 (patch)
tree5ede76dd23d1a93eb259263b037eeebbcd27a446 /libubacktrace/arm/backtrace.c
parentd1e51157725a4defd46c298ce1026d0f5d48da3c (diff)
libubacktrace: use libgcc_s.h
for consistency Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libubacktrace/arm/backtrace.c')
-rw-r--r--libubacktrace/arm/backtrace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libubacktrace/arm/backtrace.c b/libubacktrace/arm/backtrace.c
index 8c8e2a2e2..c154496a7 100644
--- a/libubacktrace/arm/backtrace.c
+++ b/libubacktrace/arm/backtrace.c
@@ -12,6 +12,7 @@
*
*/
+#include <libgcc_s.h>
#include <execinfo.h>
#include <dlfcn.h>
#include <stdlib.h>
@@ -34,11 +35,11 @@ static _Unwind_VRS_Result (*unwind_vrs_get) (_Unwind_Context *,
static void backtrace_init (void)
{
- void *handle = dlopen ("libgcc_s.so.1", RTLD_LAZY);
+ void *handle = dlopen (LIBGCC_S_SO, RTLD_LAZY);
if (handle == NULL
|| ((unwind_backtrace = dlsym (handle, "_Unwind_Backtrace")) == NULL)
|| ((unwind_vrs_get = dlsym (handle, "_Unwind_VRS_Get")) == NULL)) {
- printf("libgcc_s.so.1 must be installed for backtrace to work\n");
+ printf(LIBGCC_S_SO " must be installed for backtrace to work\n");
abort();
}
}