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
221 qrel->r_addend = (int)read32le(ptr) + val;221 qrel->r_addend = (int)read32le(ptr) + val;
222 qrel++;222 qrel++;
223 }223 }
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);
228 add32le(ptr, val);224 add32le(ptr, val);
229 break;225 break;
230 226

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