aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorThomas Stalder <thomas@netsolux.ch>2017-04-27 14:16:49 +0200
committerThomas Stalder <thomas@netsolux.ch>2017-04-27 14:16:49 +0200
commit76e16465bfce78a2a7bbe54470723fe4d640e1e4 (patch)
tree11247e73dd4f1aa786db50dbfa8725b5c38e58bd /tccelf.c
parentf12851e388e4df1b609a849581371d116f52a2ae (diff)
downloadtinycc-76e16465bfce78a2a7bbe54470723fe4d640e1e4.tar.gz
tinycc-76e16465bfce78a2a7bbe54470723fe4d640e1e4.tar.bz2
arm: Fix build_got_entries
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tccelf.c b/tccelf.c
index 654d43a..a4317dc 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -989,7 +989,11 @@ ST_FUNC void build_got_entries(TCCState *s1)
&& ELFW(ST_TYPE)(sym->st_info) == STT_FUNC)))
goto jmp_slot;
}
- } else if (!(sym->st_shndx == SHN_ABS && PTR_SIZE == 8))
+ } else if (!(sym->st_shndx == SHN_ABS
+#ifndef TCC_TARGET_ARM
+ && PTR_SIZE == 8
+#endif
+ ))
continue;
}