3 What's in the target file?
3.1 Destination file format
1) executable files: PE (Windows) and ELF (Linux) are variants of the COFF format. The destination file (. obj,. o) takes the same format.
2) Dynamic link library: (Windows. Dll,linux. So)
3) Static link library: (. lib,. a)
3.2 What is the target file?
1) Benefits of partitioning data segments and code snippets: 1. The code snippet is set to read-only to prevent false writes. 2. Increase cache Hit ratio (data cache and instruction cache). 3. When multiple processes, only one piece of code saves memory.
3.3 Digging. O
1) objdump-h SIMPLE.O Print the basic information of each segment (contents means that the file actually exists)
Size SIMPLE.O The sizes of each segment
Objdump-s-D SIMPLE.O (-S individual segment hex print,-D to decompile the instruction segment)
Self-cultivation of programmers-reading notes (2)