- 论坛徽章:
- 22
|
用工具readelf- -laptop:~/work/test$ readelf -S a.out
- There are 29 section headers, starting at offset 0x1170:
- Section Headers:
- [Nr] Name Type Addr Off Size ES Flg Lk Inf Al
- [ 0] NULL 00000000 000000 000000 00 0 0 0
- [ 1] .interp PROGBITS 08048134 000134 000013 00 A 0 0 1
- [ 2] .note.ABI-tag NOTE 08048148 000148 000020 00 A 0 0 4
- [ 3] .note.gnu.build-i NOTE 08048168 000168 000024 00 A 0 0 4
- [ 4] .gnu.hash GNU_HASH 0804818c 00018c 000020 04 A 5 0 4
- [ 5] .dynsym DYNSYM 080481ac 0001ac 000050 10 A 6 1 4
- [ 6] .dynstr STRTAB 080481fc 0001fc 00004c 00 A 0 0 1
- [ 7] .gnu.version VERSYM 08048248 000248 00000a 02 A 5 0 2
- [ 8] .gnu.version_r VERNEED 08048254 000254 000020 00 A 6 1 4
- [ 9] .rel.dyn REL 08048274 000274 000008 08 A 5 0 4
- [10] .rel.plt REL 0804827c 00027c 000018 08 A 5 12 4
- [11] .init PROGBITS 08048294 000294 000030 00 AX 0 0 4
- [12] .plt PROGBITS 080482c4 0002c4 000040 04 AX 0 0 4
- [13] .text PROGBITS 08048310 000310 0001cc 00 AX 0 0 16
- [14] .fini PROGBITS 080484dc 0004dc 00001c 00 AX 0 0 4
- [15] .rodata PROGBITS 080484f8 0004f8 000016 00 A 0 0 4
- [16] .eh_frame PROGBITS 08048510 000510 000004 00 A 0 0 4
- [17] .ctors PROGBITS 08049f14 000f14 000008 00 WA 0 0 4
- [18] .dtors PROGBITS 08049f1c 000f1c 000008 00 WA 0 0 4
- [19] .jcr PROGBITS 08049f24 000f24 000004 00 WA 0 0 4
- [20] .dynamic DYNAMIC 08049f28 000f28 0000c8 08 WA 6 0 4
- [21] .got PROGBITS 08049ff0 000ff0 000004 04 WA 0 0 4
- [22] .got.plt PROGBITS 08049ff4 000ff4 000018 04 WA 0 0 4
- [23] .data PROGBITS 0804a00c 00100c 000008 00 WA 0 0 4
- [24] .bss NOBITS 0804a014 001014 000008 00 WA 0 0 4
- [25] .comment PROGBITS 00000000 001014 00006c 01 MS 0 0 1
- [26] .shstrtab STRTAB 00000000 001080 0000ee 00 0 0 1
- [27] .symtab SYMTAB 00000000 0015f8 000400 10 28 44 4
- [28] .strtab STRTAB 00000000 0019f8 0001f9 00 0 0 1
- Key to Flags:
- W (write), A (alloc), X (execute), M (merge), S (strings)
- I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
- O (extra OS processing required) o (OS specific), p (processor specific)
复制代码 |
|