From c2efd7c53b5e4a792e9609e6fbe56196ed56787c Mon Sep 17 00:00:00 2001 From: seyko Date: Mon, 23 Mar 2015 15:31:10 +0300 Subject: [PATCH] revert a commit: Work around for the issue TCC doesn't handle -2147483648 properly because a tcc handle now -2147483648 properly. Look a commit: Make integer constant parsing C99 compliant --- tccelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccelf.c b/tccelf.c index ae4e2db1..5e83cac3 100644 --- a/tccelf.c +++ b/tccelf.c @@ -927,7 +927,7 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s) { long long diff; diff = (long long)val - addr; - if (diff <= -2147483647 || diff > 2147483647) { + if (diff < -2147483648 || diff > 2147483647) { tcc_error("internal error: relocation failed"); } *(int *)ptr += diff;