aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
authorgrischka <grischka>2016-10-05 18:34:17 +0200
committergrischka <grischka>2016-10-05 18:34:17 +0200
commitb42cb16b65ed237e6ec30f65d4f9647561515cb8 (patch)
tree4180321ae046754c683079c6e94764c3ab14e072 /tccrun.c
parentb691585785086024549cfb9ac65f3397263965aa (diff)
downloadtinycc-b42cb16b65ed237e6ec30f65d4f9647561515cb8.tar.gz
tinycc-b42cb16b65ed237e6ec30f65d4f9647561515cb8.tar.bz2
Misc. fixes
Makefile : - do not 'uninstall' peoples /usr/local/doc entirely libtcc.c : - MEM_DEBUG : IDE-friendly output "file:line: ..." - always ELF for objects tccgen.c : - fix memory leak in new switch code - move static 'in_sizeof' out of function profiling : - define 'static' to empty resolve_sym() : - replace by dlsym() win32/64: fix R_XXX_RELATIVE fixme - was fixed for i386 already in 8e4d64be2fc1d707c7800c5096f6e0ea22cbd - do not -Lsystemdir if compiling to .o
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tccrun.c b/tccrun.c
index 3a6a82d..4903f90 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -748,7 +748,7 @@ static TCCSyms tcc_syms[] = {
{ NULL, NULL },
};
-ST_FUNC void *resolve_sym(TCCState *s1, const char *symbol)
+ST_FUNC void *dlsym(int flag, const char *symbol)
{
TCCSyms *p;
p = tcc_syms;
@@ -760,13 +760,6 @@ ST_FUNC void *resolve_sym(TCCState *s1, const char *symbol)
return NULL;
}
-#elif !defined(_WIN32)
-
-ST_FUNC void *resolve_sym(TCCState *s1, const char *sym)
-{
- return dlsym(RTLD_DEFAULT, sym);
-}
-
#endif /* CONFIG_TCC_STATIC */
#endif /* TCC_IS_NATIVE */
/* ------------------------------------------------------------- */