September 2017
Beginner to intermediate
290 pages
6h 58m
English
On Linux, although files on disc are divided into sections, executables in memory are divided into code and data segments. The following is our template for the ELF 32-bit executable for Linux:
; File: src/template_lin.asm; Just as in the Windows template - we tell the assembler which type ; of output we expect. ; In this case it is 32-bit executable ELFformat ELF executable; Tell the assembler where the entry point isentry _start; On *nix based systems, when in memory, the space is arranged into ; segments, rather than in sections, therefore, we define ; two segments:; Code segment (executable segment)segment readable executable; Here is our entry point_start: ; Set return value to 0 xor ebx, ebx mov ...
Read now
Unlock full access