I\'m trying to get file size wit stat syscall with assembly (nasm):
section .data encodeFile db \"/home/user/file\" section .bss stat resb 64 struc
Change
mov eax, dword [stat + STAT.st_size]
to
mov eax, dword [STAT.st_size]