glibc/sysdeps/htl/Versions
Sergey Bugaev a4273efa21 htl: Respect GL(dl_stack_flags) when allocating stacks
Previously, HTL would always allocate non-executable stacks.  This has
never been noticed, since GNU Mach on x86 ignores VM_PROT_EXECUTE and
makes all pages implicitly executable.  Since GNU Mach on AArch64
supports non-executable pages, HTL forgetting to pass VM_PROT_EXECUTE
immediately breaks any code that (unfortunately, still) relies on
executable stacks.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-ID: <20240323173301.151066-7-bugaevc@gmail.com>
2024-03-23 22:48:44 +01:00

20 lines
507 B
Plaintext

libc {
GLIBC_2.2 {
# XXX
__vm_deallocate; __mach_port_insert_right; __mach_reply_port;
__mig_init; __vm_allocate; __mach_port_allocate;
# functions used in inline functions or macros
__pthread_spin_destroy; __pthread_spin_init; __pthread_spin_lock;
_pthread_spin_lock; __pthread_spin_trylock; __pthread_spin_unlock;
# p*
pthread_spin_destroy; pthread_spin_init; pthread_spin_lock;
pthread_spin_trylock; pthread_spin_unlock;
}
GLIBC_PRIVATE {
__vm_map;
}
}