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
1001 if (sr->sh_type != SHT_RELX)1001 if (sr->sh_type != SHT_RELX)
1002 continue;1002 continue;
1003 s = s1->sections[sr->sh_info];1003 s = s1->sections[sr->sh_info];
1004#ifndef TCC_TARGET_MACHO
1004 if (s != s1->got1005 if (s != s1->got
1005 || s1->static_link1006 || s1->static_link
1006 || s1->output_type == TCC_OUTPUT_MEMORY) {1007 || s1->output_type == TCC_OUTPUT_MEMORY)
1008#endif
1009 {
1007 relocate_section(s1, s, sr);1010 relocate_section(s1, s, sr);
1008 }1011 }
1009#ifndef ELF_OBJ_ONLY1012#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