History

plt-reloc fix for macos

herman ten brugge committed 5 years ago

Commit aa772791 parent affd7361 file · +4 −1Browse files

Unified · Split

tccelf.c+4−1
@@ -1001,9 +1001,12 @@ ST_FUNC void relocate_sections(TCCState *s1) · 1000 unmodified lines
10011001 if (sr->sh_type != SHT_RELX)
10021002 continue;
10031003 s = s1->sections[sr->sh_info];
1004+#ifndef TCC_TARGET_MACHO
10041005 if (s != s1->got
10051006 || s1->static_link
1006− || s1->output_type == TCC_OUTPUT_MEMORY) {
1007+ || s1->output_type == TCC_OUTPUT_MEMORY)
1008+#endif
1009+ {
10071010 relocate_section(s1, s, sr);
10081011 }
10091012 #ifndef ELF_OBJ_ONLY

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