diff options
| author | Michael Matz <matz@suse.de> | 2017-02-11 10:16:55 +0100 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2017-02-11 10:16:55 +0100 |
| commit | 983520d72159d0d81532123eba3cc7b4507c9991 (patch) | |
| tree | 109b7bdbc983b297fb9af40e458df9a49c08231d /arm64-link.c | |
| parent | 15f990bf71d24a029aeede081b56fe7b92516698 (diff) | |
| download | tinycc-983520d72159d0d81532123eba3cc7b4507c9991.tar.gz tinycc-983520d72159d0d81532123eba3cc7b4507c9991.tar.bz2 | |
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.
Diffstat (limited to 'arm64-link.c')
| -rw-r--r-- | arm64-link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arm64-link.c b/arm64-link.c index dd96ded..739d56e 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; |
