kaniini / libucontext

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

Remaining fixes for Apple Silicon and QEMU #27

Closed osy closed 3 years ago

osy commented 3 years ago

These last couple of fixes are needed for the following

  1. Building as a subproject in QEMU
  2. Building for/on M1 Macs
  3. Building for iOS
osy commented 3 years ago

I still don't know of a good workaround for 9b1d8f01a6e99166f9808c79966abe10786de8b6 the other way I considered is writing a Python script that generates the .S file but it seems like overkill.

kaniini commented 3 years ago

i think we can live with it for now. we should raise a bug with the clang project though to have this fixed:

osy commented 3 years ago

I think having macros expand to a single line is standard but how assemblers handle newline alternative (like ;) is dependent on the assembler: https://stackoverflow.com/questions/27685548/can-i-write-multiple-assembly-instructions-on-the-same-line

Seems like clang's arm64 assembler does not interpret ; as a new line even though clang's x86_64 assembler does...

kaniini commented 3 years ago

yeah to be clear i was talking about the ; issue