diff options
author | Peng Fan <van.freenix@gmail.com> | 2013-09-05 13:47:18 +0800 |
---|---|---|
committer | Peng Fan <van.freenix@gmail.com> | 2013-09-05 13:47:18 +0800 |
commit | 07d14d4e3239188e4f0ee407d7ae3e49fc71741b (patch) | |
tree | 826668374216a95ed9589b6b087890c84a034904 /main.c | |
parent | b25aaa867154306e0cfa6308e1a2b2dfbebb110a (diff) |
Fix symbols which need underscore
To some archs, the symbols are added a '_' prefix. we should handle it.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -47,6 +47,7 @@ int remote_debug; #endif +#include <rtl.h> #include <rap-shell.h> #include <rtl-shell.h> #include <rtl-trace.h> @@ -57,7 +58,7 @@ int remote_debug; * The tarfile is built automatically externally so we need to account * for the leading symbol on the names. */ -#if defined(__sh__) +#if (RTL_GLUE(__USER_LABEL_PREFIX__, 1) == RTL_GLUE(_, 1)) #define SYM(_x) _x #else #define SYM(_x) _ ## _x |