system calls none yet its bytes "note" handed in stack open's frame, 16 words hello.c main waits at line 6 · the pc is in libc's open 5 char buf [ 32 ] ; 6 int f = open ( "note" , 0 ) ; disassembly open · libc.so.6 4011 a5 6 mov al, sil 4011 a8 call 401070 open@plt open ("note", O_RDONLY) 4011 ad mov [rbp - 0x38], eax open@plt the PLT · its jmp reads open@got, 403fd8 4010 70 jmp [rip + 0x2f62] 7ffff7d10ec0 open open libc.so.6 · no source here 7ffff7d10f b3 xor r9d, r9d 7ffff7d10f b6 xor r8d, r8d r8 0 7ffff7d10f b9 mov rdi, 0xffffffffffffff9c rdi -100 AT_FDCWD 7ffff7d10f c0 mov eax, 0x101 rax 0x101 257 7ffff7d10f c5 syscall 7ffff7d10f c7 mov rdx, rax registers stack heap code data rwx read-only rbx 0 r12 7fffffffee38 r13 1 r14 7ffff7ffd000 r15 403da8 rax 0x101 rcx 403da8 401140 __do_global_dtors_aux rdx 0 rsi 402004 "note" rdi -100 rbp 7fffffffeca0 7fffffffed00 7fffffffedb0 7fffffffee10 0 rsp 7fffffffec30 6 r8 0 r9 0 r10 0 r11 7ffff7f70740 7ffff7f70740 rip 7ffff7d10fc0 open+256 cf PF af ZF sf IF df of The stub is one jump through open@got: it pushes nothing. Its last three set the kernel's arguments, and openat's number, 257, in rax. moment 31 of 46