History

Fix stab support for apple

herman ten brugge committed 3 years ago

Commit d605d751 parent d5781511 file · +5 −0Browse files

Unified · Split

tccelf.c+5−0
@@ -1584,6 +1584,11 @@ ST_FUNC void tcc_add_btstub(TCCState *s1) · 1583 unmodified lines
15841584 section_ptr_add(s, 3 * PTR_SIZE);
15851585 /* prog_base : local nameless symbol with offset 0 at SHN_ABS */
15861586 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
15871592 n = 2 * PTR_SIZE;
15881593 #ifdef CONFIG_TCC_BCHECK
15891594 if (s1->do_bounds_check) {

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