The relocation check does not work with stabs enabled on some targets. It works fine on fedora with and without stabs. So remove check.
Unified · Split
| @@ -221,10 +221,6 @@ ST_FUNC void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, · 220 unmodified lines | ||
| 221 | 221 | qrel->r_addend = (int)read32le(ptr) + val; |
| 222 | 222 | qrel++; |
| 223 | 223 | } |
| 224 | − if ((type == R_X86_64_32 && (unsigned long long)val > 4294967295ULL) || | |
| 225 | − (type == R_X86_64_32S && | |
| 226 | − ((long long)val < -2147483648LL || (long long)val > 2147483647LL))) | |
| 227 | − tcc_error_noabort("internal error: relocation %d failed", type); | |
| 228 | 224 | add32le(ptr, val); |
| 229 | 225 | break; |
| 230 | 226 | |