undo x86_64-link.c commmit

The relocation check does not work with stabs enabled on some targets.
It works fine on fedora with and without stabs.

So remove check.
This commit is contained in:
herman ten brugge
2025-12-21 18:49:21 +01:00
parent 96119149fe
commit 64cf0b816b

View File

@@ -221,10 +221,6 @@ ST_FUNC void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr,
qrel->r_addend = (int)read32le(ptr) + val;
qrel++;
}
if ((type == R_X86_64_32 && (unsigned long long)val > 4294967295ULL) ||
(type == R_X86_64_32S &&
((long long)val < -2147483648LL || (long long)val > 2147483647LL)))
tcc_error_noabort("internal error: relocation %d failed", type);
add32le(ptr, val);
break;