September 2017
Beginner to intermediate
290 pages
6h 58m
English
The code for dynamically linked ELF is almost the same as for an ELF object file, with a few tiny differences. First of all, the formatter directive must tell the assembler to produce an executable, rather than an object file:
format ELF executable 3 ; The 3 may be omitted if on Linux ; Include this in order to be able to create import sectioninclude 'linux_include/import32.inc'; We have to specify the entry point for the executableentry _start
The convenience structures we used in this chapter (crypto_functions and string) are still intact and should be placed in the file too. There is no strict definition as to where they should be placed exactly, but they should appear before they are used:
; The content of the data section is ...
Read now
Unlock full access