Unified · Split
| @@ -1001,9 +1001,12 @@ ST_FUNC void relocate_sections(TCCState *s1) · 1000 unmodified lines | ||
| 1001 | 1001 | if (sr->sh_type != SHT_RELX) |
| 1002 | 1002 | continue; |
| 1003 | 1003 | s = s1->sections[sr->sh_info]; |
| 1004 | +#ifndef TCC_TARGET_MACHO | |
| 1004 | 1005 | if (s != s1->got |
| 1005 | 1006 | || s1->static_link |
| 1006 | − || s1->output_type == TCC_OUTPUT_MEMORY) { | |
| 1007 | + || s1->output_type == TCC_OUTPUT_MEMORY) | |
| 1008 | +#endif | |
| 1009 | + { | |
| 1007 | 1010 | relocate_section(s1, s, sr); |
| 1008 | 1011 | } |
| 1009 | 1012 | #ifndef ELF_OBJ_ONLY |