I made this simple assembly program:
.text
.globl _start:
_start:
movl $1, %rax
movl $0, %rbx
int 0x80
The original program I took this from used %eax and %ebx instead of %rax and %rbx since it was 32 bit. And since my OS is a 64 bit Linux (Not running on as a virtual machine), i just replaced the registers. But here's what happens when I compile:
ExitShellcode.s: Assembler messages:
ExitShellcode.s:6: Error: incorrect register `%rax' used with `l' suffix
ExitShellcode.s:7: Error: incorrect register `%rbx' used with `l' suffix
ExitShellcode.s:8: Error: operand size mismatch for `int'
what do I need to do??