History

undo x86_64-link.c commmit

The relocation check does not work with stabs enabled on some targets. It works fine on fedora with and without stabs. So remove check.

herman ten brugge committed 10 months ago

Commit 64cf0b81 parent 96119141 file · +0 −4Browse files

Unified · Split

x86_64-link.c+0−4
@@ -221,10 +221,6 @@ ST_FUNC void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, · 220 unmodified lines
221221 qrel->r_addend = (int)read32le(ptr) + val;
222222 qrel++;
223223 }
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);
228224 add32le(ptr, val);
229225 break;
230226

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t