From 983520d72159d0d81532123eba3cc7b4507c9991 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sat, 11 Feb 2017 10:16:55 +0100 Subject: [PATCH] arm64: Fix 42_function_test Like in 77d7ea04a some relocs need to be handled as possibly needing a PLT/GOT slot in TCC until TCC can transfer dynamic relocs to executables. --- arm64-link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arm64-link.c b/arm64-link.c index dd96ded1..739d56ea 100644 --- a/arm64-link.c +++ b/arm64-link.c @@ -56,8 +56,6 @@ int code_reloc (int reloc_type) int gotplt_entry_type (int reloc_type) { switch (reloc_type) { - case R_AARCH64_ABS32: - case R_AARCH64_ABS64: case R_AARCH64_PREL32: case R_AARCH64_MOVW_UABS_G0_NC: case R_AARCH64_MOVW_UABS_G1_NC: @@ -70,6 +68,8 @@ int gotplt_entry_type (int reloc_type) case R_AARCH64_COPY: return NO_GOTPLT_ENTRY; + case R_AARCH64_ABS32: + case R_AARCH64_ABS64: case R_AARCH64_JUMP26: case R_AARCH64_CALL26: return AUTO_GOTPLT_ENTRY;