kaniini / libucontext

ucontext implementation featuring glibc-compatible ABI
Other
102 stars 41 forks source link

ARM64 fixes, Meson build system, and Maco-O support #22

Closed osy closed 3 years ago

osy commented 3 years ago

These changes are to get libucontext working with Apple Silicon as well as building as a subproject of QEMU. Additionally, there's a few bug fixes.

osy commented 3 years ago

I think it would be better to just change the non-Meson build system to do -D_GNU_SOURCE on the commandline.

~Sure but there’s still a problem where if it’s used as a sub project and it inherits cflags from the parent (i.e. qemu) then it gets defined but if built standalone with meason it needs to be defined.~

EDIT: nvm I just realized there’s no problem with having -D_GNU_SOURCE twice.

kaniini commented 3 years ago

Everything in here except for the clang assembler directive workaround should be merged (excluding the struct layout changes, I took a different approach there), please give the current head a go.