Skip to content

Instantly share code, notes, and snippets.

@int3
Created October 11, 2022 20:23
Show Gist options
  • Save int3/7235eb5a7266b3712b055805e3cea634 to your computer and use it in GitHub Desktop.
Save int3/7235eb5a7266b3712b055805e3cea634 to your computer and use it in GitHub Desktop.
.globl _a,_b,_c,_d
_foo:
.cfi_startproc
.cfi_personality 155, _a
nop
.cfi_endproc
_foo2:
.cfi_startproc
.cfi_personality 155, _b
nop
.cfi_endproc
_foo3:
.cfi_startproc
.cfi_personality 155, _c
nop
.cfi_endproc
_foo4:
.cfi_startproc
.cfi_personality 155, _d
nop
.cfi_endproc
_a:
nop
_b:
nop
_c:
nop
_d:
nop
@int3
Copy link
Author

int3 commented Oct 11, 2022

~/tmp2: llvm-mc -filetype=obj -triple=x86_64-apple-macos12.0 test.s -o test.o
~/tmp2: ld -lSystem -syslibroot $(xcrun -show-sdk-path) test.o -o test -dylib
ld: too many personality routines for compact unwind to encode for architecture x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment