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.
master
Michael Matz 2017-02-11 10:16:55 +01:00
parent 15f990bf71
commit 983520d721
1 changed files with 2 additions and 2 deletions

View File

@ -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;