History

macos: Fix asm-c-connect-test

via some heavy-handed hackery in the ASM symbol handling in case C symbols get a leading underscore (but ASM symbols do not). But this is now like clang and GCC on Darwin work: asm symbols are undecorated, C symbols get a _ prepended, so to connect both some trickery is involved for the ASM symbols that don't have a _ prepended. They must be included in the C symbol table (because that's what we use to lookup also ASM labels), but they also must not disturb the normal C symbol (which don't have the _ prepended), so they need some mangling. A bit unsatisfying, but well. So, add asm-c-connect-test to the working ones for Darwin as well.

Michael Matz committed 6 years ago

Commit fbfe6201 parent 3cf7bec8 files · +69 −9Browse files

Showing the changes to lib (1 of 8 files). Show all

Unified · Split

lib/alloca86_64-bt.S+1−0
@@ -4,6 +4,7 @@ · 3 unmodified lines
44 #ifdef __APPLE__
55 #define __bound_alloca ___bound_alloca
66 #define __bound_alloca_nr ___bound_alloca_nr
7+#define __bound_new_region ___bound_new_region
78 #endif
89
910 .globl __bound_alloca

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