mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 15:44:18 +08:00
undo x86_64-link.c commmit
Some checks failed
build and test / test-x86_64-linux (push) Has been cancelled
build and test / test-x86_64-osx (push) Has been cancelled
build and test / test-aarch64-osx (push) Has been cancelled
build and test / test-x86_64-win32 (push) Has been cancelled
build and test / test-i386-win32 (push) Has been cancelled
build and test / test-armv7-linux (push) Has been cancelled
build and test / test-aarch64-linux (push) Has been cancelled
build and test / test-riscv64-linux (push) Has been cancelled
Some checks failed
build and test / test-x86_64-linux (push) Has been cancelled
build and test / test-x86_64-osx (push) Has been cancelled
build and test / test-aarch64-osx (push) Has been cancelled
build and test / test-x86_64-win32 (push) Has been cancelled
build and test / test-i386-win32 (push) Has been cancelled
build and test / test-armv7-linux (push) Has been cancelled
build and test / test-aarch64-linux (push) Has been cancelled
build and test / test-riscv64-linux (push) Has been cancelled
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:
parent
96119149fe
commit
64cf0b816b
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user