aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-23 15:31:10 +0300
committerseyko <seyko2@gmail.com>2015-03-23 15:31:10 +0300
commitc2efd7c53b5e4a792e9609e6fbe56196ed56787c (patch)
treec98b8976de8e51fa580bdf53b4f4ca8984c65e0a /tccelf.c
parentbd531ec1fde7d47f71c8d68c44ba3f79ae148564 (diff)
downloadtinycc-c2efd7c53b5e4a792e9609e6fbe56196ed56787c.tar.gz
tinycc-c2efd7c53b5e4a792e9609e6fbe56196ed56787c.tar.bz2
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
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccelf.c b/tccelf.c
index ae4e2db..5e83cac 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;