If objdump detects an ELF binary (by checking the magic number at the beginning of the file), it parses the file header, which lets it know where the program header and the section tables are located. Dynamically linked executables necessarily contain enough information for the dynamic linker, so they must indicate what symbols the executable needs and an indication of where those symbols will be loaded so that the program can find them when it runs.įor example, most Unix systems use ELF (other formats exist). Executables typically start with a header containing various metadata and are organized in sections. Executables are not just a straight sequence of instructions: they have structure. ![]() It knows the format of the executable file. Objdump shows the disassembled code because that's its job.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |