Skip to content

Instantly share code, notes, and snippets.

@kumpera
Created December 21, 2011 21:38
Show Gist options
  • Select an option

  • Save kumpera/1507825 to your computer and use it in GitHub Desktop.

Select an option

Save kumpera/1507825 to your computer and use it in GitHub Desktop.
__asm (
"#include <sys/linux-syscalls.h>"
" .text"
" .type sigaltstack, #function"
" .globl sigaltstack"
" .align 4"
" .fnstart"
"sigaltstack:"
" .save {r4, r7}"
" stmfd sp!, {r4, r7}"
" ldr r7, =__NR_sigaltstack"
" swi #0"
" ldmfd sp!, {r4, r7}"
" movs r0, r0"
" bxpl lr"
" b __set_syscall_errno"
" .fnend"
);
FAILS WITH
./.libs/libmonosgen-2.0.so: undefined reference to `sigaltstack'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment