Segmentation fault when switching system call the "int" to "syscall" in Assembly x86 linux

Asked

Viewed 43 times

0

When I change the system call of int $0x80 for syscall or sysenter in this code:

    mov $4, %rax
    mov $1, %rbx
    mov $String1, %rcx
    mov $16, %rdx
    int $0x80

the program ends up in Segmentation fault. In GDB it shows:

Program Received Signal SIGSEGV, Segmentation fault. 0x0000f7ffdbe9 in ?? ()

Why is this change making this impact? Thank you

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.