首先看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 -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:...
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...
example: file format elf64-x86-64 Disassembly of section .text: 0000000000400526 <main>: 400526: 55 push %rbp 400527: 48 89 e5 mov %rsp,%rbp 40052a: 48 83 ec 10 sub $0x10,%rsp ... 5. (可选)保存反汇编结果 如果你希望将反汇编的结果保存到文件中,可以使用重定向操作符 >...
hello.o: fileformatelf64-x86-64Disassembly of section .text:0000000000000000:0:55push%rbp1:4889e5 mov %rsp,%rbp4:488d3d00000000lea0x0(%rip),%rdi# b b: e800000000callq1010: b800000000mov $0x0,%eax15:5dpop%rbp16: c3 retq AI代码助手复制代码 3.2 反汇编可...
gcc_objdump: file format elf64-x86-64 gcc_objdump architecture: i386:x86-64, flags 0x00000112: EXEC_P, HAS_SYMS, D_PAGED start address 0x0000000000400430 ProgramHeader: PHDR off 0x0000000000000040 vaddr 0x0000000000400040 paddr 0x0000000000400040 align 2**3 ...
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.property0000002000000000000003380000000000000338000003382**3
mytest.o: file format elf32-i386 rw-r--r-- 0/0 727 Jul 13 15:32 2011 mytest.o 这里,libmy2.a是一个使用ar命令将多个*.o目标文件打包而生成的静态库。命令的输出类似ar -tv,相比较ar -tv输出如下: [root@lv-k 04_libraryTest]# ar -tv libmy2.a ...
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 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) ...