Unified · Split
| @@ -1584,6 +1584,11 @@ ST_FUNC void tcc_add_btstub(TCCState *s1) · 1583 unmodified lines | |||
| 1584 | section_ptr_add(s, 3 * PTR_SIZE); | 1584 | section_ptr_add(s, 3 * PTR_SIZE); |
| 1585 | /* prog_base : local nameless symbol with offset 0 at SHN_ABS */ | 1585 | /* prog_base : local nameless symbol with offset 0 at SHN_ABS */ |
| 1586 | put_ptr(s1, NULL, 0); | 1586 | put_ptr(s1, NULL, 0); |
| 1587 | #if defined TCC_TARGET_MACHO | ||
| 1588 | /* adjust for __PAGEZERO */ | ||
| 1589 | write64le(data_section->data + data_section->data_offset - PTR_SIZE, | ||
| 1590 | (uint64_t)1 << 32); | ||
| 1591 | #endif | ||
| 1587 | n = 2 * PTR_SIZE; | 1592 | n = 2 * PTR_SIZE; |
| 1588 | #ifdef CONFIG_TCC_BCHECK | 1593 | #ifdef CONFIG_TCC_BCHECK |
| 1589 | if (s1->do_bounds_check) { | 1594 | if (s1->do_bounds_check) { |