From 64cf0b816bb72ba9b1e6874ade3a3a3339bc4368 Mon Sep 17 00:00:00 2001 From: herman ten brugge Date: Sun, 21 Dec 2025 18:49:21 +0100 Subject: [PATCH] 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. --- x86_64-link.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x86_64-link.c b/x86_64-link.c index e367ee90..c9e546c3 100644 --- a/x86_64-link.c +++ b/x86_64-link.c @@ -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;