aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-12-20 20:33:41 +0100
committergrischka <grischka>2009-12-20 20:33:41 +0100
commit0de95730ad2991479f44ea4afe83e8861c9c3ca0 (patch)
tree4341faa8c797475938d8356981a913b37e3ef9bd /tccelf.c
parentb54862406e186386f08b4d95fd3fc7686ef51463 (diff)
downloadtinycc-0de95730ad2991479f44ea4afe83e8861c9c3ca0.tar.gz
tinycc-0de95730ad2991479f44ea4afe83e8861c9c3ca0.tar.bz2
build from multiple objects: fix other targets
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccelf.c b/tccelf.c
index 25d80d7..41f820b 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -442,7 +442,7 @@ ST_FUNC void relocate_syms(TCCState *s1, int do_resolve)
if (sh_num == SHN_UNDEF) {
name = strtab_section->data + sym->st_name;
if (do_resolve) {
-#ifndef _WIN32
+#if !defined TCC_TARGET_PE || !defined _WIN32
void *addr;
name = symtab_section->link->data + sym->st_name;
addr = resolve_sym(s1, name);