From 76e16465bfce78a2a7bbe54470723fe4d640e1e4 Mon Sep 17 00:00:00 2001 From: Thomas Stalder Date: Thu, 27 Apr 2017 14:16:49 +0200 Subject: [PATCH] arm: Fix build_got_entries --- tccelf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }