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
This commit is contained in:
parent
bd531ec1fd
commit
c2efd7c53b
1 changed files with 1 additions and 1 deletions
2
tccelf.c
2
tccelf.c
|
@ -927,7 +927,7 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s)
|
||||||
{
|
{
|
||||||
long long diff;
|
long long diff;
|
||||||
diff = (long long)val - addr;
|
diff = (long long)val - addr;
|
||||||
if (diff <= -2147483647 || diff > 2147483647) {
|
if (diff < -2147483648 || diff > 2147483647) {
|
||||||
tcc_error("internal error: relocation failed");
|
tcc_error("internal error: relocation failed");
|
||||||
}
|
}
|
||||||
*(int *)ptr += diff;
|
*(int *)ptr += diff;
|
||||||
|
|
Loading…
Add table
Reference in a new issue