首先看test.o file format elf64-x86-64:文件所在平台属性,这里是64位x86处理器平台 Sections: Size: 段的大小,字节为单位 VMA: 段在虚拟地址中的位置 LMA:段在加载地址中的位置 File off: File offset,段的起始位置 Algn:字节对齐方式,2**2表示2的平方即为4,2**3表示2的3次方即为8 这里面重要的有 ....
使用命令“objdump -h test”,得到二进制可执行文件test的节信息列表,如下所示。 test1: file format elf64-x86-64 Sections: Idx Name Size VMA LMA File off Algn0.interp 0000001c00000000000003180000000000000318000003182**0 CONTENTS, ALLOC, LOAD, READONLY, DATA1.note.gnu.property00000020000000000000033800000000...
main.o:fileformatelf64-x86-64 rw-r--r--0/018696Mar820:252019main.o objdump.o:fileformatelf64-x86-64 rw-r--r--0/021352Mar820:252019objdump.o 使用命令ar -tv也可以列出档案中包含的目标文件。 [root@TENCENT64~]#ar-tvlibobjdump.arw-r--r--0/018696Mar820:252019main.o rw-r--r--0/0...
1 hello.o: file format elf64-x86-64 2 3 Disassembly of section .init.text: 4 5 0000000000000000 <init_module>: 6 MODULE_LICENSE("GPL"); 7 MODULE_AUTHOR("baoli"); 8 MODULE_DESCRIPTION("hello world module"); 9 10 static int __init hello_init(void) 11 { 12 0: 55 push %rbp 13...
1. Display file header using -f option Output consisting of only the file header (ELF header) can be displayed using -f option with this command. Consider the following example : $ objdump -f assert assert: file format elf64-x86-64 ...
factorial:file format elf64-x86-64architecture:i386:x86-64,flags0x00000112:EXEC_P,HAS_SYMS,D_PAGEDstart address0x0000000000400440 所以我们看到与整个文件头相关的信息显示在输出中。 2.使用-p选项显示对象格式特定的文件头内容 以下示例打印目标文件格式的特定信息。
my_program: file format elf64-x86-64 Disassembly of section .text: 0000000000401000 <_start>: 401000: b8 04 00 00 00 mov $0x4,%eax 401005: bb 01 00 00 00 mov $0x1,%ebx 40100a: 59 pop %rcx 40100b: cd 80 int $0x80 ... 这就是 my_program 的反汇编代码的一部分。
1 hello.o: file format elf64-x86-64 2 3 Disassembly of section .init.text: 4 5 0000000000000000 <init_module>: 6 MODULE_LICENSE("GPL"); 7 MODULE_AUTHOR("baoli"); 8 MODULE_DESCRIPTION("hello world module"); 9 10 static int __init hello_init(void) ...
1 hello.o: file format elf64-x86-64 2 3 Disassembly of section .init.text:4 50000000000000000 <init_module>:6 MODULE_LICENSE("GPL");7 MODULE_AUTHOR("baoli");8 MODULE_DESCRIPTION("hello world module");9 10static int __init hello_init(void)11 { 120: 55 push %rbp 131: ...
objdump -d -l study study: file format elf64-x86-64 Disassembly of section .init: 0000000000001000 <_init>: _init(): 1000: f3 0f 1e fa endbr64 1004: 48 83 ec 08 sub $0x8,%rsp 1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base> 100f:...