Why does my data section appear twice in the compiled binary? Ubuntu, x86, nasm, gdb, reaelf
- 阅读更多 关于 Why does my data section appear twice in the compiled binary? Ubuntu, x86, nasm, gdb, reaelf
问题 A prior related question was answered. Thank you! However this creates a new question for me. Why does nasm put data bytes at two different memory locations? I include program information and other data dump below. ---------- code snippet compiled with nasm, ld ----------------- section .text ... zero: jmp short two one: pop ebx xor eax, eax mov [ebx+12], eax mov [ebx+8], ebx mov [ebx+7], al lea ecx, [ebx+8] lea edx, [ebx+12] mov al, 11 int 0x80 two: call one section .data align=1 msg: db '