mirror of
https://github.com/wader/fq.git
synced 2024-11-24 11:16:09 +03:00
macho: add fqtest actualization
leave libbbb.a out
This commit is contained in:
parent
0d648928ce
commit
5c5bd87914
10
format/macho/testdata/Makefile
vendored
10
format/macho/testdata/Makefile
vendored
@ -1,4 +1,6 @@
|
||||
TARGETS=libbbb.o libbbb.so libbbb.a a.o a_dynamic a_stripped a_static
|
||||
TEST_TARGETS=libbbb.o libbbb.so a.o a_dynamic a_stripped a_static
|
||||
TARGETS=$(TEST_TARGETS) libbbb.a
|
||||
FQ:=fq
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
@ -25,3 +27,9 @@ a_stripped: a_dynamic
|
||||
strip -o $@ $<
|
||||
a_static: a.o libbbb.a
|
||||
$(CC) -o $@ $+ libbbb.a
|
||||
|
||||
all-platforms-actual:
|
||||
make actual DIR=darwin_amd64
|
||||
|
||||
actual:
|
||||
cd $(DIR) && echo $(TEST_TARGETS) | tr -s '[:blank:]' '\n' | grep -ivE '.*\.o$$' | xargs -I '{}' sh -c 'echo "$$ fq -d macho v {}" > {}.fqtest && $(FQ) -d macho v {} >> {}.fqtest'
|
@ -1,5 +1,7 @@
|
||||
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: darwin_amd64/a_dynamic (macho) 0x0-0xc15f.7 (49504)
|
||||
| | | mach_header_64{}: 0x0-0x1f.7 (32)
|
||||
$ fq -d macho v a_dynamic
|
||||
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_dynamic (macho) 0x0-0xc15f.7 (49504)
|
||||
| | | header{}: 0x0-0x1f.7 (32)
|
||||
| | | arch_bits: 64 0x0-NA (0)
|
||||
0x0000|cf fa ed fe |.... | magic: "little_endian" (0xfeedfacf) 0x0-0x3.7 (4)
|
||||
0x0000| 07 00 00 01 | .... | cputype: "CPU_TYPE_X86_64" (16777223) 0x4-0x7.7 (4)
|
||||
0x0000| 03 00 00 00 | .... | cpusubtype: 3 0x8-0xb.7 (4)
|
||||
@ -12,7 +14,8 @@
|
||||
| | | [0]{}: load_command 0x20-0x67.7 (72)
|
||||
0x0020|19 00 00 00 |.... | cmd: "segment_64" (25) 0x20-0x23.7 (4)
|
||||
0x0020| 48 00 00 00 | H... | cmdsize: 72 0x24-0x27.7 (4)
|
||||
| | | segment_command_64{}: 0x28-0x67.7 (64)
|
||||
| | | segment_command{}: 0x28-0x67.7 (64)
|
||||
| | | arch_bits: 64 0x28-NA (0)
|
||||
0x0020| 5f 5f 50 41 47 45 5a 45| __PAGEZE| segname: "__PAGEZERO" 0x28-0x37.7 (16)
|
||||
0x0030|52 4f 00 00 00 00 00 00 |RO...... |
|
||||
0x0030| 00 00 00 00 00 00 00 00| ........| vmaddr: 0x0 0x38-0x3f.7 (8)
|
||||
@ -27,7 +30,8 @@
|
||||
| | | [1]{}: load_command 0x68-0x23f.7 (472)
|
||||
0x0060| 19 00 00 00 | .... | cmd: "segment_64" (25) 0x68-0x6b.7 (4)
|
||||
0x0060| d8 01 00 00| ....| cmdsize: 472 0x6c-0x6f.7 (4)
|
||||
| | | segment_command_64{}: 0x70-0xaf.7 (64)
|
||||
| | | segment_command{}: 0x70-0xaf.7 (64)
|
||||
| | | arch_bits: 64 0x70-NA (0)
|
||||
0x0070|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x70-0x7f.7 (16)
|
||||
0x0080|00 00 00 00 01 00 00 00 |........ | vmaddr: 0x100000000 0x80-0x87.7 (8)
|
||||
0x0080| 00 40 00 00 00 00 00 00| .@......| vmsize: 16384 0x88-0x8f.7 (8)
|
||||
@ -39,8 +43,8 @@
|
||||
0x00a0| 00 00 00 00| ....| flags: 0 0xac-0xaf.7 (4)
|
||||
| | | sections[0:5]: 0xb0-0x23f.7 (400)
|
||||
| | | [0]{}: section 0xb0-0xff.7 (80)
|
||||
0x00b0|5f 5f 74 65 78 74 00 00 00 00 00 00 00 00 00 00|__text..........| sectname: "__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0xb0-0xbf.7 (16)
|
||||
0x00c0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0xc0-0xcf.7 (16)
|
||||
0x00b0|5f 5f 74 65 78 74 00 00 00 00 00 00 00 00 00 00|__text..........| sectname: "__text" 0xb0-0xbf.7 (16)
|
||||
0x00c0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0xc0-0xcf.7 (16)
|
||||
0x00d0|40 3f 00 00 01 00 00 00 |@?...... | address: 0x100003f40 0xd0-0xd7.7 (8)
|
||||
0x00d0| 34 00 00 00 00 00 00 00| 4.......| size: 52 0xd8-0xdf.7 (8)
|
||||
0x00e0|40 3f 00 00 |@?.. | offset: 16192 0xe0-0xe3.7 (4)
|
||||
@ -52,8 +56,8 @@
|
||||
0x00f0| 00 00 00 00 | .... | reserved2: 0 0xf8-0xfb.7 (4)
|
||||
0x00f0| 00 00 00 00| ....| reserved3: 0 0xfc-0xff.7 (4)
|
||||
| | | [1]{}: section 0x100-0x14f.7 (80)
|
||||
0x0100|5f 5f 73 74 75 62 73 00 00 00 00 00 00 00 00 00|__stubs.........| sectname: "__stubs\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x100-0x10f.7 (16)
|
||||
0x0110|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x110-0x11f.7 (16)
|
||||
0x0100|5f 5f 73 74 75 62 73 00 00 00 00 00 00 00 00 00|__stubs.........| sectname: "__stubs" 0x100-0x10f.7 (16)
|
||||
0x0110|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x110-0x11f.7 (16)
|
||||
0x0120|74 3f 00 00 01 00 00 00 |t?...... | address: 0x100003f74 0x120-0x127.7 (8)
|
||||
0x0120| 0c 00 00 00 00 00 00 00| ........| size: 12 0x128-0x12f.7 (8)
|
||||
0x0130|74 3f 00 00 |t?.. | offset: 16244 0x130-0x133.7 (4)
|
||||
@ -65,8 +69,8 @@
|
||||
0x0140| 06 00 00 00 | .... | reserved2: 6 0x148-0x14b.7 (4)
|
||||
0x0140| 00 00 00 00| ....| reserved3: 0 0x14c-0x14f.7 (4)
|
||||
| | | [2]{}: section 0x150-0x19f.7 (80)
|
||||
0x0150|5f 5f 73 74 75 62 5f 68 65 6c 70 65 72 00 00 00|__stub_helper...| sectname: "__stub_helper\x00\x00\x00" 0x150-0x15f.7 (16)
|
||||
0x0160|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x160-0x16f.7 (16)
|
||||
0x0150|5f 5f 73 74 75 62 5f 68 65 6c 70 65 72 00 00 00|__stub_helper...| sectname: "__stub_helper" 0x150-0x15f.7 (16)
|
||||
0x0160|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x160-0x16f.7 (16)
|
||||
0x0170|80 3f 00 00 01 00 00 00 |.?...... | address: 0x100003f80 0x170-0x177.7 (8)
|
||||
0x0170| 24 00 00 00 00 00 00 00| $.......| size: 36 0x178-0x17f.7 (8)
|
||||
0x0180|80 3f 00 00 |.?.. | offset: 16256 0x180-0x183.7 (4)
|
||||
@ -78,8 +82,8 @@
|
||||
0x0190| 00 00 00 00 | .... | reserved2: 0 0x198-0x19b.7 (4)
|
||||
0x0190| 00 00 00 00| ....| reserved3: 0 0x19c-0x19f.7 (4)
|
||||
| | | [3]{}: section 0x1a0-0x1ef.7 (80)
|
||||
0x01a0|5f 5f 63 73 74 72 69 6e 67 00 00 00 00 00 00 00|__cstring.......| sectname: "__cstring\x00\x00\x00\x00\x00\x00\x00" 0x1a0-0x1af.7 (16)
|
||||
0x01b0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x1b0-0x1bf.7 (16)
|
||||
0x01a0|5f 5f 63 73 74 72 69 6e 67 00 00 00 00 00 00 00|__cstring.......| sectname: "__cstring" 0x1a0-0x1af.7 (16)
|
||||
0x01b0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x1b0-0x1bf.7 (16)
|
||||
0x01c0|a4 3f 00 00 01 00 00 00 |.?...... | address: 0x100003fa4 0x1c0-0x1c7.7 (8)
|
||||
0x01c0| 05 00 00 00 00 00 00 00| ........| size: 5 0x1c8-0x1cf.7 (8)
|
||||
0x01d0|a4 3f 00 00 |.?.. | offset: 16292 0x1d0-0x1d3.7 (4)
|
||||
@ -91,8 +95,8 @@
|
||||
0x01e0| 00 00 00 00 | .... | reserved2: 0 0x1e8-0x1eb.7 (4)
|
||||
0x01e0| 00 00 00 00| ....| reserved3: 0 0x1ec-0x1ef.7 (4)
|
||||
| | | [4]{}: section 0x1f0-0x23f.7 (80)
|
||||
0x01f0|5f 5f 75 6e 77 69 6e 64 5f 69 6e 66 6f 00 00 00|__unwind_info...| sectname: "__unwind_info\x00\x00\x00" 0x1f0-0x1ff.7 (16)
|
||||
0x0200|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x200-0x20f.7 (16)
|
||||
0x01f0|5f 5f 75 6e 77 69 6e 64 5f 69 6e 66 6f 00 00 00|__unwind_info...| sectname: "__unwind_info" 0x1f0-0x1ff.7 (16)
|
||||
0x0200|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x200-0x20f.7 (16)
|
||||
0x0210|ac 3f 00 00 01 00 00 00 |.?...... | address: 0x100003fac 0x210-0x217.7 (8)
|
||||
0x0210| 48 00 00 00 00 00 00 00| H.......| size: 72 0x218-0x21f.7 (8)
|
||||
0x0220|ac 3f 00 00 |.?.. | offset: 16300 0x220-0x223.7 (4)
|
||||
@ -106,7 +110,8 @@
|
||||
| | | [2]{}: load_command 0x240-0x2d7.7 (152)
|
||||
0x0240|19 00 00 00 |.... | cmd: "segment_64" (25) 0x240-0x243.7 (4)
|
||||
0x0240| 98 00 00 00 | .... | cmdsize: 152 0x244-0x247.7 (4)
|
||||
| | | segment_command_64{}: 0x248-0x287.7 (64)
|
||||
| | | segment_command{}: 0x248-0x287.7 (64)
|
||||
| | | arch_bits: 64 0x248-NA (0)
|
||||
0x0240| 5f 5f 44 41 54 41 5f 43| __DATA_C| segname: "__DATA_CONST" 0x248-0x257.7 (16)
|
||||
0x0250|4f 4e 53 54 00 00 00 00 |ONST.... |
|
||||
0x0250| 00 40 00 00 01 00 00 00| .@......| vmaddr: 0x100004000 0x258-0x25f.7 (8)
|
||||
@ -119,9 +124,9 @@
|
||||
0x0280| 10 00 00 00 | .... | flags: 16 0x284-0x287.7 (4)
|
||||
| | | sections[0:1]: 0x288-0x2d7.7 (80)
|
||||
| | | [0]{}: section 0x288-0x2d7.7 (80)
|
||||
0x0280| 5f 5f 67 6f 74 00 00 00| __got...| sectname: "__got\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x288-0x297.7 (16)
|
||||
0x0280| 5f 5f 67 6f 74 00 00 00| __got...| sectname: "__got" 0x288-0x297.7 (16)
|
||||
0x0290|00 00 00 00 00 00 00 00 |........ |
|
||||
0x0290| 5f 5f 44 41 54 41 5f 43| __DATA_C| segname: "__DATA_CONST\x00\x00\x00\x00" 0x298-0x2a7.7 (16)
|
||||
0x0290| 5f 5f 44 41 54 41 5f 43| __DATA_C| segname: "__DATA_CONST" 0x298-0x2a7.7 (16)
|
||||
0x02a0|4f 4e 53 54 00 00 00 00 |ONST.... |
|
||||
0x02a0| 00 40 00 00 01 00 00 00| .@......| address: 0x100004000 0x2a8-0x2af.7 (8)
|
||||
0x02b0|08 00 00 00 00 00 00 00 |........ | size: 8 0x2b0-0x2b7.7 (8)
|
||||
@ -136,7 +141,8 @@
|
||||
| | | [3]{}: load_command 0x2d8-0x3bf.7 (232)
|
||||
0x02d0| 19 00 00 00 | .... | cmd: "segment_64" (25) 0x2d8-0x2db.7 (4)
|
||||
0x02d0| e8 00 00 00| ....| cmdsize: 232 0x2dc-0x2df.7 (4)
|
||||
| | | segment_command_64{}: 0x2e0-0x31f.7 (64)
|
||||
| | | segment_command{}: 0x2e0-0x31f.7 (64)
|
||||
| | | arch_bits: 64 0x2e0-NA (0)
|
||||
0x02e0|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA" 0x2e0-0x2ef.7 (16)
|
||||
0x02f0|00 80 00 00 01 00 00 00 |........ | vmaddr: 0x100008000 0x2f0-0x2f7.7 (8)
|
||||
0x02f0| 00 40 00 00 00 00 00 00| .@......| vmsize: 16384 0x2f8-0x2ff.7 (8)
|
||||
@ -148,8 +154,8 @@
|
||||
0x0310| 00 00 00 00| ....| flags: 0 0x31c-0x31f.7 (4)
|
||||
| | | sections[0:2]: 0x320-0x3bf.7 (160)
|
||||
| | | [0]{}: section 0x320-0x36f.7 (80)
|
||||
0x0320|5f 5f 6c 61 5f 73 79 6d 62 6f 6c 5f 70 74 72 00|__la_symbol_ptr.| sectname: "__la_symbol_ptr\x00" 0x320-0x32f.7 (16)
|
||||
0x0330|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x330-0x33f.7 (16)
|
||||
0x0320|5f 5f 6c 61 5f 73 79 6d 62 6f 6c 5f 70 74 72 00|__la_symbol_ptr.| sectname: "__la_symbol_ptr" 0x320-0x32f.7 (16)
|
||||
0x0330|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA" 0x330-0x33f.7 (16)
|
||||
0x0340|00 80 00 00 01 00 00 00 |........ | address: 0x100008000 0x340-0x347.7 (8)
|
||||
0x0340| 10 00 00 00 00 00 00 00| ........| size: 16 0x348-0x34f.7 (8)
|
||||
0x0350|00 80 00 00 |.... | offset: 32768 0x350-0x353.7 (4)
|
||||
@ -161,8 +167,8 @@
|
||||
0x0360| 00 00 00 00 | .... | reserved2: 0 0x368-0x36b.7 (4)
|
||||
0x0360| 00 00 00 00| ....| reserved3: 0 0x36c-0x36f.7 (4)
|
||||
| | | [1]{}: section 0x370-0x3bf.7 (80)
|
||||
0x0370|5f 5f 64 61 74 61 00 00 00 00 00 00 00 00 00 00|__data..........| sectname: "__data\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x370-0x37f.7 (16)
|
||||
0x0380|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x380-0x38f.7 (16)
|
||||
0x0370|5f 5f 64 61 74 61 00 00 00 00 00 00 00 00 00 00|__data..........| sectname: "__data" 0x370-0x37f.7 (16)
|
||||
0x0380|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA" 0x380-0x38f.7 (16)
|
||||
0x0390|10 80 00 00 01 00 00 00 |........ | address: 0x100008010 0x390-0x397.7 (8)
|
||||
0x0390| 08 00 00 00 00 00 00 00| ........| size: 8 0x398-0x39f.7 (8)
|
||||
0x03a0|10 80 00 00 |.... | offset: 32784 0x3a0-0x3a3.7 (4)
|
||||
@ -176,7 +182,8 @@
|
||||
| | | [4]{}: load_command 0x3c0-0x407.7 (72)
|
||||
0x03c0|19 00 00 00 |.... | cmd: "segment_64" (25) 0x3c0-0x3c3.7 (4)
|
||||
0x03c0| 48 00 00 00 | H... | cmdsize: 72 0x3c4-0x3c7.7 (4)
|
||||
| | | segment_command_64{}: 0x3c8-0x407.7 (64)
|
||||
| | | segment_command{}: 0x3c8-0x407.7 (64)
|
||||
| | | arch_bits: 64 0x3c8-NA (0)
|
||||
0x03c0| 5f 5f 4c 49 4e 4b 45 44| __LINKED| segname: "__LINKEDIT" 0x3c8-0x3d7.7 (16)
|
||||
0x03d0|49 54 00 00 00 00 00 00 |IT...... |
|
||||
0x03d0| 00 c0 00 00 01 00 00 00| ........| vmaddr: 0x10000c000 0x3d8-0x3df.7 (8)
|
||||
|
@ -1,5 +1,7 @@
|
||||
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: darwin_amd64/a_static (macho) 0x0-0xc157.7 (49496)
|
||||
| | | mach_header_64{}: 0x0-0x1f.7 (32)
|
||||
$ fq -d macho v a_static
|
||||
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_static (macho) 0x0-0xc157.7 (49496)
|
||||
| | | header{}: 0x0-0x1f.7 (32)
|
||||
| | | arch_bits: 64 0x0-NA (0)
|
||||
0x0000|cf fa ed fe |.... | magic: "little_endian" (0xfeedfacf) 0x0-0x3.7 (4)
|
||||
0x0000| 07 00 00 01 | .... | cputype: "CPU_TYPE_X86_64" (16777223) 0x4-0x7.7 (4)
|
||||
0x0000| 03 00 00 00 | .... | cpusubtype: 3 0x8-0xb.7 (4)
|
||||
@ -12,7 +14,8 @@
|
||||
| | | [0]{}: load_command 0x20-0x67.7 (72)
|
||||
0x0020|19 00 00 00 |.... | cmd: "segment_64" (25) 0x20-0x23.7 (4)
|
||||
0x0020| 48 00 00 00 | H... | cmdsize: 72 0x24-0x27.7 (4)
|
||||
| | | segment_command_64{}: 0x28-0x67.7 (64)
|
||||
| | | segment_command{}: 0x28-0x67.7 (64)
|
||||
| | | arch_bits: 64 0x28-NA (0)
|
||||
0x0020| 5f 5f 50 41 47 45 5a 45| __PAGEZE| segname: "__PAGEZERO" 0x28-0x37.7 (16)
|
||||
0x0030|52 4f 00 00 00 00 00 00 |RO...... |
|
||||
0x0030| 00 00 00 00 00 00 00 00| ........| vmaddr: 0x0 0x38-0x3f.7 (8)
|
||||
@ -27,7 +30,8 @@
|
||||
| | | [1]{}: load_command 0x68-0x23f.7 (472)
|
||||
0x0060| 19 00 00 00 | .... | cmd: "segment_64" (25) 0x68-0x6b.7 (4)
|
||||
0x0060| d8 01 00 00| ....| cmdsize: 472 0x6c-0x6f.7 (4)
|
||||
| | | segment_command_64{}: 0x70-0xaf.7 (64)
|
||||
| | | segment_command{}: 0x70-0xaf.7 (64)
|
||||
| | | arch_bits: 64 0x70-NA (0)
|
||||
0x0070|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x70-0x7f.7 (16)
|
||||
0x0080|00 00 00 00 01 00 00 00 |........ | vmaddr: 0x100000000 0x80-0x87.7 (8)
|
||||
0x0080| 00 40 00 00 00 00 00 00| .@......| vmsize: 16384 0x88-0x8f.7 (8)
|
||||
@ -39,8 +43,8 @@
|
||||
0x00a0| 00 00 00 00| ....| flags: 0 0xac-0xaf.7 (4)
|
||||
| | | sections[0:5]: 0xb0-0x23f.7 (400)
|
||||
| | | [0]{}: section 0xb0-0xff.7 (80)
|
||||
0x00b0|5f 5f 74 65 78 74 00 00 00 00 00 00 00 00 00 00|__text..........| sectname: "__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0xb0-0xbf.7 (16)
|
||||
0x00c0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0xc0-0xcf.7 (16)
|
||||
0x00b0|5f 5f 74 65 78 74 00 00 00 00 00 00 00 00 00 00|__text..........| sectname: "__text" 0xb0-0xbf.7 (16)
|
||||
0x00c0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0xc0-0xcf.7 (16)
|
||||
0x00d0|30 3f 00 00 01 00 00 00 |0?...... | address: 0x100003f30 0xd0-0xd7.7 (8)
|
||||
0x00d0| 54 00 00 00 00 00 00 00| T.......| size: 84 0xd8-0xdf.7 (8)
|
||||
0x00e0|30 3f 00 00 |0?.. | offset: 16176 0xe0-0xe3.7 (4)
|
||||
@ -52,8 +56,8 @@
|
||||
0x00f0| 00 00 00 00 | .... | reserved2: 0 0xf8-0xfb.7 (4)
|
||||
0x00f0| 00 00 00 00| ....| reserved3: 0 0xfc-0xff.7 (4)
|
||||
| | | [1]{}: section 0x100-0x14f.7 (80)
|
||||
0x0100|5f 5f 73 74 75 62 73 00 00 00 00 00 00 00 00 00|__stubs.........| sectname: "__stubs\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x100-0x10f.7 (16)
|
||||
0x0110|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x110-0x11f.7 (16)
|
||||
0x0100|5f 5f 73 74 75 62 73 00 00 00 00 00 00 00 00 00|__stubs.........| sectname: "__stubs" 0x100-0x10f.7 (16)
|
||||
0x0110|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x110-0x11f.7 (16)
|
||||
0x0120|84 3f 00 00 01 00 00 00 |.?...... | address: 0x100003f84 0x120-0x127.7 (8)
|
||||
0x0120| 06 00 00 00 00 00 00 00| ........| size: 6 0x128-0x12f.7 (8)
|
||||
0x0130|84 3f 00 00 |.?.. | offset: 16260 0x130-0x133.7 (4)
|
||||
@ -65,8 +69,8 @@
|
||||
0x0140| 06 00 00 00 | .... | reserved2: 6 0x148-0x14b.7 (4)
|
||||
0x0140| 00 00 00 00| ....| reserved3: 0 0x14c-0x14f.7 (4)
|
||||
| | | [2]{}: section 0x150-0x19f.7 (80)
|
||||
0x0150|5f 5f 73 74 75 62 5f 68 65 6c 70 65 72 00 00 00|__stub_helper...| sectname: "__stub_helper\x00\x00\x00" 0x150-0x15f.7 (16)
|
||||
0x0160|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x160-0x16f.7 (16)
|
||||
0x0150|5f 5f 73 74 75 62 5f 68 65 6c 70 65 72 00 00 00|__stub_helper...| sectname: "__stub_helper" 0x150-0x15f.7 (16)
|
||||
0x0160|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x160-0x16f.7 (16)
|
||||
0x0170|8c 3f 00 00 01 00 00 00 |.?...... | address: 0x100003f8c 0x170-0x177.7 (8)
|
||||
0x0170| 1a 00 00 00 00 00 00 00| ........| size: 26 0x178-0x17f.7 (8)
|
||||
0x0180|8c 3f 00 00 |.?.. | offset: 16268 0x180-0x183.7 (4)
|
||||
@ -78,8 +82,8 @@
|
||||
0x0190| 00 00 00 00 | .... | reserved2: 0 0x198-0x19b.7 (4)
|
||||
0x0190| 00 00 00 00| ....| reserved3: 0 0x19c-0x19f.7 (4)
|
||||
| | | [3]{}: section 0x1a0-0x1ef.7 (80)
|
||||
0x01a0|5f 5f 63 73 74 72 69 6e 67 00 00 00 00 00 00 00|__cstring.......| sectname: "__cstring\x00\x00\x00\x00\x00\x00\x00" 0x1a0-0x1af.7 (16)
|
||||
0x01b0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x1b0-0x1bf.7 (16)
|
||||
0x01a0|5f 5f 63 73 74 72 69 6e 67 00 00 00 00 00 00 00|__cstring.......| sectname: "__cstring" 0x1a0-0x1af.7 (16)
|
||||
0x01b0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x1b0-0x1bf.7 (16)
|
||||
0x01c0|a6 3f 00 00 01 00 00 00 |.?...... | address: 0x100003fa6 0x1c0-0x1c7.7 (8)
|
||||
0x01c0| 11 00 00 00 00 00 00 00| ........| size: 17 0x1c8-0x1cf.7 (8)
|
||||
0x01d0|a6 3f 00 00 |.?.. | offset: 16294 0x1d0-0x1d3.7 (4)
|
||||
@ -91,8 +95,8 @@
|
||||
0x01e0| 00 00 00 00 | .... | reserved2: 0 0x1e8-0x1eb.7 (4)
|
||||
0x01e0| 00 00 00 00| ....| reserved3: 0 0x1ec-0x1ef.7 (4)
|
||||
| | | [4]{}: section 0x1f0-0x23f.7 (80)
|
||||
0x01f0|5f 5f 75 6e 77 69 6e 64 5f 69 6e 66 6f 00 00 00|__unwind_info...| sectname: "__unwind_info\x00\x00\x00" 0x1f0-0x1ff.7 (16)
|
||||
0x0200|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x200-0x20f.7 (16)
|
||||
0x01f0|5f 5f 75 6e 77 69 6e 64 5f 69 6e 66 6f 00 00 00|__unwind_info...| sectname: "__unwind_info" 0x1f0-0x1ff.7 (16)
|
||||
0x0200|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x200-0x20f.7 (16)
|
||||
0x0210|b8 3f 00 00 01 00 00 00 |.?...... | address: 0x100003fb8 0x210-0x217.7 (8)
|
||||
0x0210| 48 00 00 00 00 00 00 00| H.......| size: 72 0x218-0x21f.7 (8)
|
||||
0x0220|b8 3f 00 00 |.?.. | offset: 16312 0x220-0x223.7 (4)
|
||||
@ -106,7 +110,8 @@
|
||||
| | | [2]{}: load_command 0x240-0x2d7.7 (152)
|
||||
0x0240|19 00 00 00 |.... | cmd: "segment_64" (25) 0x240-0x243.7 (4)
|
||||
0x0240| 98 00 00 00 | .... | cmdsize: 152 0x244-0x247.7 (4)
|
||||
| | | segment_command_64{}: 0x248-0x287.7 (64)
|
||||
| | | segment_command{}: 0x248-0x287.7 (64)
|
||||
| | | arch_bits: 64 0x248-NA (0)
|
||||
0x0240| 5f 5f 44 41 54 41 5f 43| __DATA_C| segname: "__DATA_CONST" 0x248-0x257.7 (16)
|
||||
0x0250|4f 4e 53 54 00 00 00 00 |ONST.... |
|
||||
0x0250| 00 40 00 00 01 00 00 00| .@......| vmaddr: 0x100004000 0x258-0x25f.7 (8)
|
||||
@ -119,9 +124,9 @@
|
||||
0x0280| 10 00 00 00 | .... | flags: 16 0x284-0x287.7 (4)
|
||||
| | | sections[0:1]: 0x288-0x2d7.7 (80)
|
||||
| | | [0]{}: section 0x288-0x2d7.7 (80)
|
||||
0x0280| 5f 5f 67 6f 74 00 00 00| __got...| sectname: "__got\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x288-0x297.7 (16)
|
||||
0x0280| 5f 5f 67 6f 74 00 00 00| __got...| sectname: "__got" 0x288-0x297.7 (16)
|
||||
0x0290|00 00 00 00 00 00 00 00 |........ |
|
||||
0x0290| 5f 5f 44 41 54 41 5f 43| __DATA_C| segname: "__DATA_CONST\x00\x00\x00\x00" 0x298-0x2a7.7 (16)
|
||||
0x0290| 5f 5f 44 41 54 41 5f 43| __DATA_C| segname: "__DATA_CONST" 0x298-0x2a7.7 (16)
|
||||
0x02a0|4f 4e 53 54 00 00 00 00 |ONST.... |
|
||||
0x02a0| 00 40 00 00 01 00 00 00| .@......| address: 0x100004000 0x2a8-0x2af.7 (8)
|
||||
0x02b0|08 00 00 00 00 00 00 00 |........ | size: 8 0x2b0-0x2b7.7 (8)
|
||||
@ -136,7 +141,8 @@
|
||||
| | | [3]{}: load_command 0x2d8-0x3bf.7 (232)
|
||||
0x02d0| 19 00 00 00 | .... | cmd: "segment_64" (25) 0x2d8-0x2db.7 (4)
|
||||
0x02d0| e8 00 00 00| ....| cmdsize: 232 0x2dc-0x2df.7 (4)
|
||||
| | | segment_command_64{}: 0x2e0-0x31f.7 (64)
|
||||
| | | segment_command{}: 0x2e0-0x31f.7 (64)
|
||||
| | | arch_bits: 64 0x2e0-NA (0)
|
||||
0x02e0|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA" 0x2e0-0x2ef.7 (16)
|
||||
0x02f0|00 80 00 00 01 00 00 00 |........ | vmaddr: 0x100008000 0x2f0-0x2f7.7 (8)
|
||||
0x02f0| 00 40 00 00 00 00 00 00| .@......| vmsize: 16384 0x2f8-0x2ff.7 (8)
|
||||
@ -148,8 +154,8 @@
|
||||
0x0310| 00 00 00 00| ....| flags: 0 0x31c-0x31f.7 (4)
|
||||
| | | sections[0:2]: 0x320-0x3bf.7 (160)
|
||||
| | | [0]{}: section 0x320-0x36f.7 (80)
|
||||
0x0320|5f 5f 6c 61 5f 73 79 6d 62 6f 6c 5f 70 74 72 00|__la_symbol_ptr.| sectname: "__la_symbol_ptr\x00" 0x320-0x32f.7 (16)
|
||||
0x0330|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x330-0x33f.7 (16)
|
||||
0x0320|5f 5f 6c 61 5f 73 79 6d 62 6f 6c 5f 70 74 72 00|__la_symbol_ptr.| sectname: "__la_symbol_ptr" 0x320-0x32f.7 (16)
|
||||
0x0330|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA" 0x330-0x33f.7 (16)
|
||||
0x0340|00 80 00 00 01 00 00 00 |........ | address: 0x100008000 0x340-0x347.7 (8)
|
||||
0x0340| 08 00 00 00 00 00 00 00| ........| size: 8 0x348-0x34f.7 (8)
|
||||
0x0350|00 80 00 00 |.... | offset: 32768 0x350-0x353.7 (4)
|
||||
@ -161,8 +167,8 @@
|
||||
0x0360| 00 00 00 00 | .... | reserved2: 0 0x368-0x36b.7 (4)
|
||||
0x0360| 00 00 00 00| ....| reserved3: 0 0x36c-0x36f.7 (4)
|
||||
| | | [1]{}: section 0x370-0x3bf.7 (80)
|
||||
0x0370|5f 5f 64 61 74 61 00 00 00 00 00 00 00 00 00 00|__data..........| sectname: "__data\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x370-0x37f.7 (16)
|
||||
0x0380|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x380-0x38f.7 (16)
|
||||
0x0370|5f 5f 64 61 74 61 00 00 00 00 00 00 00 00 00 00|__data..........| sectname: "__data" 0x370-0x37f.7 (16)
|
||||
0x0380|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA" 0x380-0x38f.7 (16)
|
||||
0x0390|08 80 00 00 01 00 00 00 |........ | address: 0x100008008 0x390-0x397.7 (8)
|
||||
0x0390| 08 00 00 00 00 00 00 00| ........| size: 8 0x398-0x39f.7 (8)
|
||||
0x03a0|08 80 00 00 |.... | offset: 32776 0x3a0-0x3a3.7 (4)
|
||||
@ -176,7 +182,8 @@
|
||||
| | | [4]{}: load_command 0x3c0-0x407.7 (72)
|
||||
0x03c0|19 00 00 00 |.... | cmd: "segment_64" (25) 0x3c0-0x3c3.7 (4)
|
||||
0x03c0| 48 00 00 00 | H... | cmdsize: 72 0x3c4-0x3c7.7 (4)
|
||||
| | | segment_command_64{}: 0x3c8-0x407.7 (64)
|
||||
| | | segment_command{}: 0x3c8-0x407.7 (64)
|
||||
| | | arch_bits: 64 0x3c8-NA (0)
|
||||
0x03c0| 5f 5f 4c 49 4e 4b 45 44| __LINKED| segname: "__LINKEDIT" 0x3c8-0x3d7.7 (16)
|
||||
0x03d0|49 54 00 00 00 00 00 00 |IT...... |
|
||||
0x03d0| 00 c0 00 00 01 00 00 00| ........| vmaddr: 0x10000c000 0x3d8-0x3df.7 (8)
|
||||
|
@ -1,5 +1,7 @@
|
||||
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: darwin_amd64/a_stripped (macho) 0x0-0xc137.7 (49464)
|
||||
| | | mach_header_64{}: 0x0-0x1f.7 (32)
|
||||
$ fq -d macho v a_stripped
|
||||
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: a_stripped (macho) 0x0-0xc137.7 (49464)
|
||||
| | | header{}: 0x0-0x1f.7 (32)
|
||||
| | | arch_bits: 64 0x0-NA (0)
|
||||
0x0000|cf fa ed fe |.... | magic: "little_endian" (0xfeedfacf) 0x0-0x3.7 (4)
|
||||
0x0000| 07 00 00 01 | .... | cputype: "CPU_TYPE_X86_64" (16777223) 0x4-0x7.7 (4)
|
||||
0x0000| 03 00 00 00 | .... | cpusubtype: 3 0x8-0xb.7 (4)
|
||||
@ -12,7 +14,8 @@
|
||||
| | | [0]{}: load_command 0x20-0x67.7 (72)
|
||||
0x0020|19 00 00 00 |.... | cmd: "segment_64" (25) 0x20-0x23.7 (4)
|
||||
0x0020| 48 00 00 00 | H... | cmdsize: 72 0x24-0x27.7 (4)
|
||||
| | | segment_command_64{}: 0x28-0x67.7 (64)
|
||||
| | | segment_command{}: 0x28-0x67.7 (64)
|
||||
| | | arch_bits: 64 0x28-NA (0)
|
||||
0x0020| 5f 5f 50 41 47 45 5a 45| __PAGEZE| segname: "__PAGEZERO" 0x28-0x37.7 (16)
|
||||
0x0030|52 4f 00 00 00 00 00 00 |RO...... |
|
||||
0x0030| 00 00 00 00 00 00 00 00| ........| vmaddr: 0x0 0x38-0x3f.7 (8)
|
||||
@ -27,7 +30,8 @@
|
||||
| | | [1]{}: load_command 0x68-0x23f.7 (472)
|
||||
0x0060| 19 00 00 00 | .... | cmd: "segment_64" (25) 0x68-0x6b.7 (4)
|
||||
0x0060| d8 01 00 00| ....| cmdsize: 472 0x6c-0x6f.7 (4)
|
||||
| | | segment_command_64{}: 0x70-0xaf.7 (64)
|
||||
| | | segment_command{}: 0x70-0xaf.7 (64)
|
||||
| | | arch_bits: 64 0x70-NA (0)
|
||||
0x0070|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x70-0x7f.7 (16)
|
||||
0x0080|00 00 00 00 01 00 00 00 |........ | vmaddr: 0x100000000 0x80-0x87.7 (8)
|
||||
0x0080| 00 40 00 00 00 00 00 00| .@......| vmsize: 16384 0x88-0x8f.7 (8)
|
||||
@ -39,8 +43,8 @@
|
||||
0x00a0| 00 00 00 00| ....| flags: 0 0xac-0xaf.7 (4)
|
||||
| | | sections[0:5]: 0xb0-0x23f.7 (400)
|
||||
| | | [0]{}: section 0xb0-0xff.7 (80)
|
||||
0x00b0|5f 5f 74 65 78 74 00 00 00 00 00 00 00 00 00 00|__text..........| sectname: "__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0xb0-0xbf.7 (16)
|
||||
0x00c0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0xc0-0xcf.7 (16)
|
||||
0x00b0|5f 5f 74 65 78 74 00 00 00 00 00 00 00 00 00 00|__text..........| sectname: "__text" 0xb0-0xbf.7 (16)
|
||||
0x00c0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0xc0-0xcf.7 (16)
|
||||
0x00d0|40 3f 00 00 01 00 00 00 |@?...... | address: 0x100003f40 0xd0-0xd7.7 (8)
|
||||
0x00d0| 34 00 00 00 00 00 00 00| 4.......| size: 52 0xd8-0xdf.7 (8)
|
||||
0x00e0|40 3f 00 00 |@?.. | offset: 16192 0xe0-0xe3.7 (4)
|
||||
@ -52,8 +56,8 @@
|
||||
0x00f0| 00 00 00 00 | .... | reserved2: 0 0xf8-0xfb.7 (4)
|
||||
0x00f0| 00 00 00 00| ....| reserved3: 0 0xfc-0xff.7 (4)
|
||||
| | | [1]{}: section 0x100-0x14f.7 (80)
|
||||
0x0100|5f 5f 73 74 75 62 73 00 00 00 00 00 00 00 00 00|__stubs.........| sectname: "__stubs\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x100-0x10f.7 (16)
|
||||
0x0110|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x110-0x11f.7 (16)
|
||||
0x0100|5f 5f 73 74 75 62 73 00 00 00 00 00 00 00 00 00|__stubs.........| sectname: "__stubs" 0x100-0x10f.7 (16)
|
||||
0x0110|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x110-0x11f.7 (16)
|
||||
0x0120|74 3f 00 00 01 00 00 00 |t?...... | address: 0x100003f74 0x120-0x127.7 (8)
|
||||
0x0120| 0c 00 00 00 00 00 00 00| ........| size: 12 0x128-0x12f.7 (8)
|
||||
0x0130|74 3f 00 00 |t?.. | offset: 16244 0x130-0x133.7 (4)
|
||||
@ -65,8 +69,8 @@
|
||||
0x0140| 06 00 00 00 | .... | reserved2: 6 0x148-0x14b.7 (4)
|
||||
0x0140| 00 00 00 00| ....| reserved3: 0 0x14c-0x14f.7 (4)
|
||||
| | | [2]{}: section 0x150-0x19f.7 (80)
|
||||
0x0150|5f 5f 73 74 75 62 5f 68 65 6c 70 65 72 00 00 00|__stub_helper...| sectname: "__stub_helper\x00\x00\x00" 0x150-0x15f.7 (16)
|
||||
0x0160|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x160-0x16f.7 (16)
|
||||
0x0150|5f 5f 73 74 75 62 5f 68 65 6c 70 65 72 00 00 00|__stub_helper...| sectname: "__stub_helper" 0x150-0x15f.7 (16)
|
||||
0x0160|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x160-0x16f.7 (16)
|
||||
0x0170|80 3f 00 00 01 00 00 00 |.?...... | address: 0x100003f80 0x170-0x177.7 (8)
|
||||
0x0170| 24 00 00 00 00 00 00 00| $.......| size: 36 0x178-0x17f.7 (8)
|
||||
0x0180|80 3f 00 00 |.?.. | offset: 16256 0x180-0x183.7 (4)
|
||||
@ -78,8 +82,8 @@
|
||||
0x0190| 00 00 00 00 | .... | reserved2: 0 0x198-0x19b.7 (4)
|
||||
0x0190| 00 00 00 00| ....| reserved3: 0 0x19c-0x19f.7 (4)
|
||||
| | | [3]{}: section 0x1a0-0x1ef.7 (80)
|
||||
0x01a0|5f 5f 63 73 74 72 69 6e 67 00 00 00 00 00 00 00|__cstring.......| sectname: "__cstring\x00\x00\x00\x00\x00\x00\x00" 0x1a0-0x1af.7 (16)
|
||||
0x01b0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x1b0-0x1bf.7 (16)
|
||||
0x01a0|5f 5f 63 73 74 72 69 6e 67 00 00 00 00 00 00 00|__cstring.......| sectname: "__cstring" 0x1a0-0x1af.7 (16)
|
||||
0x01b0|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x1b0-0x1bf.7 (16)
|
||||
0x01c0|a4 3f 00 00 01 00 00 00 |.?...... | address: 0x100003fa4 0x1c0-0x1c7.7 (8)
|
||||
0x01c0| 05 00 00 00 00 00 00 00| ........| size: 5 0x1c8-0x1cf.7 (8)
|
||||
0x01d0|a4 3f 00 00 |.?.. | offset: 16292 0x1d0-0x1d3.7 (4)
|
||||
@ -91,8 +95,8 @@
|
||||
0x01e0| 00 00 00 00 | .... | reserved2: 0 0x1e8-0x1eb.7 (4)
|
||||
0x01e0| 00 00 00 00| ....| reserved3: 0 0x1ec-0x1ef.7 (4)
|
||||
| | | [4]{}: section 0x1f0-0x23f.7 (80)
|
||||
0x01f0|5f 5f 75 6e 77 69 6e 64 5f 69 6e 66 6f 00 00 00|__unwind_info...| sectname: "__unwind_info\x00\x00\x00" 0x1f0-0x1ff.7 (16)
|
||||
0x0200|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x200-0x20f.7 (16)
|
||||
0x01f0|5f 5f 75 6e 77 69 6e 64 5f 69 6e 66 6f 00 00 00|__unwind_info...| sectname: "__unwind_info" 0x1f0-0x1ff.7 (16)
|
||||
0x0200|5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00|__TEXT..........| segname: "__TEXT" 0x200-0x20f.7 (16)
|
||||
0x0210|ac 3f 00 00 01 00 00 00 |.?...... | address: 0x100003fac 0x210-0x217.7 (8)
|
||||
0x0210| 48 00 00 00 00 00 00 00| H.......| size: 72 0x218-0x21f.7 (8)
|
||||
0x0220|ac 3f 00 00 |.?.. | offset: 16300 0x220-0x223.7 (4)
|
||||
@ -106,7 +110,8 @@
|
||||
| | | [2]{}: load_command 0x240-0x2d7.7 (152)
|
||||
0x0240|19 00 00 00 |.... | cmd: "segment_64" (25) 0x240-0x243.7 (4)
|
||||
0x0240| 98 00 00 00 | .... | cmdsize: 152 0x244-0x247.7 (4)
|
||||
| | | segment_command_64{}: 0x248-0x287.7 (64)
|
||||
| | | segment_command{}: 0x248-0x287.7 (64)
|
||||
| | | arch_bits: 64 0x248-NA (0)
|
||||
0x0240| 5f 5f 44 41 54 41 5f 43| __DATA_C| segname: "__DATA_CONST" 0x248-0x257.7 (16)
|
||||
0x0250|4f 4e 53 54 00 00 00 00 |ONST.... |
|
||||
0x0250| 00 40 00 00 01 00 00 00| .@......| vmaddr: 0x100004000 0x258-0x25f.7 (8)
|
||||
@ -119,9 +124,9 @@
|
||||
0x0280| 10 00 00 00 | .... | flags: 16 0x284-0x287.7 (4)
|
||||
| | | sections[0:1]: 0x288-0x2d7.7 (80)
|
||||
| | | [0]{}: section 0x288-0x2d7.7 (80)
|
||||
0x0280| 5f 5f 67 6f 74 00 00 00| __got...| sectname: "__got\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x288-0x297.7 (16)
|
||||
0x0280| 5f 5f 67 6f 74 00 00 00| __got...| sectname: "__got" 0x288-0x297.7 (16)
|
||||
0x0290|00 00 00 00 00 00 00 00 |........ |
|
||||
0x0290| 5f 5f 44 41 54 41 5f 43| __DATA_C| segname: "__DATA_CONST\x00\x00\x00\x00" 0x298-0x2a7.7 (16)
|
||||
0x0290| 5f 5f 44 41 54 41 5f 43| __DATA_C| segname: "__DATA_CONST" 0x298-0x2a7.7 (16)
|
||||
0x02a0|4f 4e 53 54 00 00 00 00 |ONST.... |
|
||||
0x02a0| 00 40 00 00 01 00 00 00| .@......| address: 0x100004000 0x2a8-0x2af.7 (8)
|
||||
0x02b0|08 00 00 00 00 00 00 00 |........ | size: 8 0x2b0-0x2b7.7 (8)
|
||||
@ -136,7 +141,8 @@
|
||||
| | | [3]{}: load_command 0x2d8-0x3bf.7 (232)
|
||||
0x02d0| 19 00 00 00 | .... | cmd: "segment_64" (25) 0x2d8-0x2db.7 (4)
|
||||
0x02d0| e8 00 00 00| ....| cmdsize: 232 0x2dc-0x2df.7 (4)
|
||||
| | | segment_command_64{}: 0x2e0-0x31f.7 (64)
|
||||
| | | segment_command{}: 0x2e0-0x31f.7 (64)
|
||||
| | | arch_bits: 64 0x2e0-NA (0)
|
||||
0x02e0|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA" 0x2e0-0x2ef.7 (16)
|
||||
0x02f0|00 80 00 00 01 00 00 00 |........ | vmaddr: 0x100008000 0x2f0-0x2f7.7 (8)
|
||||
0x02f0| 00 40 00 00 00 00 00 00| .@......| vmsize: 16384 0x2f8-0x2ff.7 (8)
|
||||
@ -148,8 +154,8 @@
|
||||
0x0310| 00 00 00 00| ....| flags: 0 0x31c-0x31f.7 (4)
|
||||
| | | sections[0:2]: 0x320-0x3bf.7 (160)
|
||||
| | | [0]{}: section 0x320-0x36f.7 (80)
|
||||
0x0320|5f 5f 6c 61 5f 73 79 6d 62 6f 6c 5f 70 74 72 00|__la_symbol_ptr.| sectname: "__la_symbol_ptr\x00" 0x320-0x32f.7 (16)
|
||||
0x0330|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x330-0x33f.7 (16)
|
||||
0x0320|5f 5f 6c 61 5f 73 79 6d 62 6f 6c 5f 70 74 72 00|__la_symbol_ptr.| sectname: "__la_symbol_ptr" 0x320-0x32f.7 (16)
|
||||
0x0330|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA" 0x330-0x33f.7 (16)
|
||||
0x0340|00 80 00 00 01 00 00 00 |........ | address: 0x100008000 0x340-0x347.7 (8)
|
||||
0x0340| 10 00 00 00 00 00 00 00| ........| size: 16 0x348-0x34f.7 (8)
|
||||
0x0350|00 80 00 00 |.... | offset: 32768 0x350-0x353.7 (4)
|
||||
@ -161,8 +167,8 @@
|
||||
0x0360| 00 00 00 00 | .... | reserved2: 0 0x368-0x36b.7 (4)
|
||||
0x0360| 00 00 00 00| ....| reserved3: 0 0x36c-0x36f.7 (4)
|
||||
| | | [1]{}: section 0x370-0x3bf.7 (80)
|
||||
0x0370|5f 5f 64 61 74 61 00 00 00 00 00 00 00 00 00 00|__data..........| sectname: "__data\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x370-0x37f.7 (16)
|
||||
0x0380|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x380-0x38f.7 (16)
|
||||
0x0370|5f 5f 64 61 74 61 00 00 00 00 00 00 00 00 00 00|__data..........| sectname: "__data" 0x370-0x37f.7 (16)
|
||||
0x0380|5f 5f 44 41 54 41 00 00 00 00 00 00 00 00 00 00|__DATA..........| segname: "__DATA" 0x380-0x38f.7 (16)
|
||||
0x0390|10 80 00 00 01 00 00 00 |........ | address: 0x100008010 0x390-0x397.7 (8)
|
||||
0x0390| 08 00 00 00 00 00 00 00| ........| size: 8 0x398-0x39f.7 (8)
|
||||
0x03a0|10 80 00 00 |.... | offset: 32784 0x3a0-0x3a3.7 (4)
|
||||
@ -176,7 +182,8 @@
|
||||
| | | [4]{}: load_command 0x3c0-0x407.7 (72)
|
||||
0x03c0|19 00 00 00 |.... | cmd: "segment_64" (25) 0x3c0-0x3c3.7 (4)
|
||||
0x03c0| 48 00 00 00 | H... | cmdsize: 72 0x3c4-0x3c7.7 (4)
|
||||
| | | segment_command_64{}: 0x3c8-0x407.7 (64)
|
||||
| | | segment_command{}: 0x3c8-0x407.7 (64)
|
||||
| | | arch_bits: 64 0x3c8-NA (0)
|
||||
0x03c0| 5f 5f 4c 49 4e 4b 45 44| __LINKED| segname: "__LINKEDIT" 0x3c8-0x3d7.7 (16)
|
||||
0x03d0|49 54 00 00 00 00 00 00 |IT...... |
|
||||
0x03d0| 00 c0 00 00 01 00 00 00| ........| vmaddr: 0x10000c000 0x3d8-0x3df.7 (8)
|
||||
|
BIN
format/macho/testdata/darwin_amd64/libbbb.a
vendored
BIN
format/macho/testdata/darwin_amd64/libbbb.a
vendored
Binary file not shown.
@ -1,31 +0,0 @@
|
||||
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: darwin_amd64/libbbb.a (ar) 0x0-0x3b7.7 (952)
|
||||
0x000|21 3c 61 72 63 68 3e 0a |!<arch>. | signature: "!<arch>\n" (valid) 0x0-0x7.7 (8)
|
||||
| | | files[0:2]: 0x8-0x3b7.7 (944)
|
||||
| | | [0]{}: file 0x8-0x77.7 (112)
|
||||
0x000| 23 31 2f 32 30 20 20 20| #1/20 | identifier: "#1/20" 0x8-0x17.7 (16)
|
||||
0x010|20 20 20 20 20 20 20 20 | |
|
||||
0x010| 31 36 34 31 36 35 32 37| 16416527| modification_timestamp: 1641652705 ("1641652705") 0x18-0x23.7 (12)
|
||||
0x020|30 35 20 20 |05 |
|
||||
0x020| 35 30 33 20 20 20 | 503 | owner_id: 503 ("503") 0x24-0x29.7 (6)
|
||||
0x020| 32 30 20 20 20 20| 20 | group_id: 20 ("20") 0x2a-0x2f.7 (6)
|
||||
0x030|31 30 30 36 34 34 20 20 |100644 | file_mode: 33188 ("100644") 0x30-0x37.7 (8)
|
||||
0x030| 35 32 20 20 20 20 20 20| 52 | file_size: 52 ("52") 0x38-0x41.7 (10)
|
||||
0x040|20 20 | |
|
||||
0x040| 60 0a | `. | ending_characters: "`\n" 0x42-0x43.7 (2)
|
||||
0x040| 5f 5f 2e 53 59 4d 44 45 46 20 53 4f| __.SYMDEF SO| data: raw bits 0x44-0x77.7 (52)
|
||||
0x050|52 54 45 44 00 00 00 00 08 00 00 00 00 00 00 00|RTED............|
|
||||
* |until 0x77.7 (52) | |
|
||||
| | | [1]{}: file 0x78-0x3b7.7 (832)
|
||||
0x070| 23 31 2f 31 32 20 20 20| #1/12 | identifier: "#1/12" 0x78-0x87.7 (16)
|
||||
0x080|20 20 20 20 20 20 20 20 | |
|
||||
0x080| 31 36 34 31 36 35 32 37| 16416527| modification_timestamp: 1641652700 ("1641652700") 0x88-0x93.7 (12)
|
||||
0x090|30 30 20 20 |00 |
|
||||
0x090| 35 30 33 20 20 20 | 503 | owner_id: 503 ("503") 0x94-0x99.7 (6)
|
||||
0x090| 32 30 20 20 20 20| 20 | group_id: 20 ("20") 0x9a-0x9f.7 (6)
|
||||
0x0a0|31 30 30 36 34 34 20 20 |100644 | file_mode: 33188 ("100644") 0xa0-0xa7.7 (8)
|
||||
0x0a0| 37 37 32 20 20 20 20 20| 772 | file_size: 772 ("772") 0xa8-0xb1.7 (10)
|
||||
0x0b0|20 20 | |
|
||||
0x0b0| 60 0a | `. | ending_characters: "`\n" 0xb2-0xb3.7 (2)
|
||||
0x0b0| 6c 69 62 62 62 62 2e 6f 00 00 00 00| libbbb.o....| data: raw bits 0xb4-0x3b7.7 (772)
|
||||
0x0c0|cf fa ed fe 07 00 00 01 03 00 00 00 01 00 00 00|................|
|
||||
* |until 0x3b7.7 (end) (772) | |
|
@ -1,5 +1,7 @@
|
||||
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: darwin_amd64/libbbb.so (macho) 0x0-0xc0d7.7 (49368)
|
||||
| | | mach_header_64{}: 0x0-0x1f.7 (32)
|
||||
$ fq -d macho v libbbb.so
|
||||
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: libbbb.so (macho) 0x0-0xc0d7.7 (49368)
|
||||
| | | header{}: 0x0-0x1f.7 (32)
|
||||
| | | arch_bits: 64 0x0-NA (0)
|
||||
0x0000|cf fa ed fe |.... | magic: "little_endian" (0xfeedfacf) 0x0-0x3.7 (4)
|
||||
0x0000| 07 00 00 01 | .... | cputype: "CPU_TYPE_X86_64" (16777223) 0x4-0x7.7 (4)
|
||||
0x0000| 03 00 00 00 | .... | cpusubtype: 3 0x8-0xb.7 (4)
|
||||
@ -12,7 +14,8 @@
|
||||
| | | [0]{}: load_command 0x20-0x1f7.7 (472)
|
||||
0x0020|19 00 00 00 |.... | cmd: "segment_64" (25) 0x20-0x23.7 (4)
|
||||
0x0020| d8 01 00 00 | .... | cmdsize: 472 0x24-0x27.7 (4)
|
||||
| | | segment_command_64{}: 0x28-0x67.7 (64)
|
||||
| | | segment_command{}: 0x28-0x67.7 (64)
|
||||
| | | arch_bits: 64 0x28-NA (0)
|
||||
0x0020| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT" 0x28-0x37.7 (16)
|
||||
0x0030|00 00 00 00 00 00 00 00 |........ |
|
||||
0x0030| 00 00 00 00 00 00 00 00| ........| vmaddr: 0x0 0x38-0x3f.7 (8)
|
||||
@ -25,9 +28,9 @@
|
||||
0x0060| 00 00 00 00 | .... | flags: 0 0x64-0x67.7 (4)
|
||||
| | | sections[0:5]: 0x68-0x1f7.7 (400)
|
||||
| | | [0]{}: section 0x68-0xb7.7 (80)
|
||||
0x0060| 5f 5f 74 65 78 74 00 00| __text..| sectname: "__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x68-0x77.7 (16)
|
||||
0x0060| 5f 5f 74 65 78 74 00 00| __text..| sectname: "__text" 0x68-0x77.7 (16)
|
||||
0x0070|00 00 00 00 00 00 00 00 |........ |
|
||||
0x0070| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x78-0x87.7 (16)
|
||||
0x0070| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT" 0x78-0x87.7 (16)
|
||||
0x0080|00 00 00 00 00 00 00 00 |........ |
|
||||
0x0080| 70 3f 00 00 00 00 00 00| p?......| address: 0x3f70 0x88-0x8f.7 (8)
|
||||
0x0090|14 00 00 00 00 00 00 00 |........ | size: 20 0x90-0x97.7 (8)
|
||||
@ -40,9 +43,9 @@
|
||||
0x00b0|00 00 00 00 |.... | reserved2: 0 0xb0-0xb3.7 (4)
|
||||
0x00b0| 00 00 00 00 | .... | reserved3: 0 0xb4-0xb7.7 (4)
|
||||
| | | [1]{}: section 0xb8-0x107.7 (80)
|
||||
0x00b0| 5f 5f 73 74 75 62 73 00| __stubs.| sectname: "__stubs\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0xb8-0xc7.7 (16)
|
||||
0x00b0| 5f 5f 73 74 75 62 73 00| __stubs.| sectname: "__stubs" 0xb8-0xc7.7 (16)
|
||||
0x00c0|00 00 00 00 00 00 00 00 |........ |
|
||||
0x00c0| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0xc8-0xd7.7 (16)
|
||||
0x00c0| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT" 0xc8-0xd7.7 (16)
|
||||
0x00d0|00 00 00 00 00 00 00 00 |........ |
|
||||
0x00d0| 84 3f 00 00 00 00 00 00| .?......| address: 0x3f84 0xd8-0xdf.7 (8)
|
||||
0x00e0|06 00 00 00 00 00 00 00 |........ | size: 6 0xe0-0xe7.7 (8)
|
||||
@ -55,9 +58,9 @@
|
||||
0x0100|06 00 00 00 |.... | reserved2: 6 0x100-0x103.7 (4)
|
||||
0x0100| 00 00 00 00 | .... | reserved3: 0 0x104-0x107.7 (4)
|
||||
| | | [2]{}: section 0x108-0x157.7 (80)
|
||||
0x0100| 5f 5f 73 74 75 62 5f 68| __stub_h| sectname: "__stub_helper\x00\x00\x00" 0x108-0x117.7 (16)
|
||||
0x0100| 5f 5f 73 74 75 62 5f 68| __stub_h| sectname: "__stub_helper" 0x108-0x117.7 (16)
|
||||
0x0110|65 6c 70 65 72 00 00 00 |elper... |
|
||||
0x0110| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x118-0x127.7 (16)
|
||||
0x0110| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT" 0x118-0x127.7 (16)
|
||||
0x0120|00 00 00 00 00 00 00 00 |........ |
|
||||
0x0120| 8c 3f 00 00 00 00 00 00| .?......| address: 0x3f8c 0x128-0x12f.7 (8)
|
||||
0x0130|1a 00 00 00 00 00 00 00 |........ | size: 26 0x130-0x137.7 (8)
|
||||
@ -70,9 +73,9 @@
|
||||
0x0150|00 00 00 00 |.... | reserved2: 0 0x150-0x153.7 (4)
|
||||
0x0150| 00 00 00 00 | .... | reserved3: 0 0x154-0x157.7 (4)
|
||||
| | | [3]{}: section 0x158-0x1a7.7 (80)
|
||||
0x0150| 5f 5f 63 73 74 72 69 6e| __cstrin| sectname: "__cstring\x00\x00\x00\x00\x00\x00\x00" 0x158-0x167.7 (16)
|
||||
0x0150| 5f 5f 63 73 74 72 69 6e| __cstrin| sectname: "__cstring" 0x158-0x167.7 (16)
|
||||
0x0160|67 00 00 00 00 00 00 00 |g....... |
|
||||
0x0160| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x168-0x177.7 (16)
|
||||
0x0160| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT" 0x168-0x177.7 (16)
|
||||
0x0170|00 00 00 00 00 00 00 00 |........ |
|
||||
0x0170| a6 3f 00 00 00 00 00 00| .?......| address: 0x3fa6 0x178-0x17f.7 (8)
|
||||
0x0180|0c 00 00 00 00 00 00 00 |........ | size: 12 0x180-0x187.7 (8)
|
||||
@ -85,9 +88,9 @@
|
||||
0x01a0|00 00 00 00 |.... | reserved2: 0 0x1a0-0x1a3.7 (4)
|
||||
0x01a0| 00 00 00 00 | .... | reserved3: 0 0x1a4-0x1a7.7 (4)
|
||||
| | | [4]{}: section 0x1a8-0x1f7.7 (80)
|
||||
0x01a0| 5f 5f 75 6e 77 69 6e 64| __unwind| sectname: "__unwind_info\x00\x00\x00" 0x1a8-0x1b7.7 (16)
|
||||
0x01a0| 5f 5f 75 6e 77 69 6e 64| __unwind| sectname: "__unwind_info" 0x1a8-0x1b7.7 (16)
|
||||
0x01b0|5f 69 6e 66 6f 00 00 00 |_info... |
|
||||
0x01b0| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x1b8-0x1c7.7 (16)
|
||||
0x01b0| 5f 5f 54 45 58 54 00 00| __TEXT..| segname: "__TEXT" 0x1b8-0x1c7.7 (16)
|
||||
0x01c0|00 00 00 00 00 00 00 00 |........ |
|
||||
0x01c0| b4 3f 00 00 00 00 00 00| .?......| address: 0x3fb4 0x1c8-0x1cf.7 (8)
|
||||
0x01d0|48 00 00 00 00 00 00 00 |H....... | size: 72 0x1d0-0x1d7.7 (8)
|
||||
@ -102,7 +105,8 @@
|
||||
| | | [1]{}: load_command 0x1f8-0x28f.7 (152)
|
||||
0x01f0| 19 00 00 00 | .... | cmd: "segment_64" (25) 0x1f8-0x1fb.7 (4)
|
||||
0x01f0| 98 00 00 00| ....| cmdsize: 152 0x1fc-0x1ff.7 (4)
|
||||
| | | segment_command_64{}: 0x200-0x23f.7 (64)
|
||||
| | | segment_command{}: 0x200-0x23f.7 (64)
|
||||
| | | arch_bits: 64 0x200-NA (0)
|
||||
0x0200|5f 5f 44 41 54 41 5f 43 4f 4e 53 54 00 00 00 00|__DATA_CONST....| segname: "__DATA_CONST" 0x200-0x20f.7 (16)
|
||||
0x0210|00 40 00 00 00 00 00 00 |.@...... | vmaddr: 0x4000 0x210-0x217.7 (8)
|
||||
0x0210| 00 40 00 00 00 00 00 00| .@......| vmsize: 16384 0x218-0x21f.7 (8)
|
||||
@ -114,8 +118,8 @@
|
||||
0x0230| 10 00 00 00| ....| flags: 16 0x23c-0x23f.7 (4)
|
||||
| | | sections[0:1]: 0x240-0x28f.7 (80)
|
||||
| | | [0]{}: section 0x240-0x28f.7 (80)
|
||||
0x0240|5f 5f 67 6f 74 00 00 00 00 00 00 00 00 00 00 00|__got...........| sectname: "__got\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x240-0x24f.7 (16)
|
||||
0x0250|5f 5f 44 41 54 41 5f 43 4f 4e 53 54 00 00 00 00|__DATA_CONST....| segname: "__DATA_CONST\x00\x00\x00\x00" 0x250-0x25f.7 (16)
|
||||
0x0240|5f 5f 67 6f 74 00 00 00 00 00 00 00 00 00 00 00|__got...........| sectname: "__got" 0x240-0x24f.7 (16)
|
||||
0x0250|5f 5f 44 41 54 41 5f 43 4f 4e 53 54 00 00 00 00|__DATA_CONST....| segname: "__DATA_CONST" 0x250-0x25f.7 (16)
|
||||
0x0260|00 40 00 00 00 00 00 00 |.@...... | address: 0x4000 0x260-0x267.7 (8)
|
||||
0x0260| 08 00 00 00 00 00 00 00| ........| size: 8 0x268-0x26f.7 (8)
|
||||
0x0270|00 40 00 00 |.@.. | offset: 16384 0x270-0x273.7 (4)
|
||||
@ -129,7 +133,8 @@
|
||||
| | | [2]{}: load_command 0x290-0x377.7 (232)
|
||||
0x0290|19 00 00 00 |.... | cmd: "segment_64" (25) 0x290-0x293.7 (4)
|
||||
0x0290| e8 00 00 00 | .... | cmdsize: 232 0x294-0x297.7 (4)
|
||||
| | | segment_command_64{}: 0x298-0x2d7.7 (64)
|
||||
| | | segment_command{}: 0x298-0x2d7.7 (64)
|
||||
| | | arch_bits: 64 0x298-NA (0)
|
||||
0x0290| 5f 5f 44 41 54 41 00 00| __DATA..| segname: "__DATA" 0x298-0x2a7.7 (16)
|
||||
0x02a0|00 00 00 00 00 00 00 00 |........ |
|
||||
0x02a0| 00 80 00 00 00 00 00 00| ........| vmaddr: 0x8000 0x2a8-0x2af.7 (8)
|
||||
@ -142,9 +147,9 @@
|
||||
0x02d0| 00 00 00 00 | .... | flags: 0 0x2d4-0x2d7.7 (4)
|
||||
| | | sections[0:2]: 0x2d8-0x377.7 (160)
|
||||
| | | [0]{}: section 0x2d8-0x327.7 (80)
|
||||
0x02d0| 5f 5f 6c 61 5f 73 79 6d| __la_sym| sectname: "__la_symbol_ptr\x00" 0x2d8-0x2e7.7 (16)
|
||||
0x02d0| 5f 5f 6c 61 5f 73 79 6d| __la_sym| sectname: "__la_symbol_ptr" 0x2d8-0x2e7.7 (16)
|
||||
0x02e0|62 6f 6c 5f 70 74 72 00 |bol_ptr. |
|
||||
0x02e0| 5f 5f 44 41 54 41 00 00| __DATA..| segname: "__DATA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x2e8-0x2f7.7 (16)
|
||||
0x02e0| 5f 5f 44 41 54 41 00 00| __DATA..| segname: "__DATA" 0x2e8-0x2f7.7 (16)
|
||||
0x02f0|00 00 00 00 00 00 00 00 |........ |
|
||||
0x02f0| 00 80 00 00 00 00 00 00| ........| address: 0x8000 0x2f8-0x2ff.7 (8)
|
||||
0x0300|08 00 00 00 00 00 00 00 |........ | size: 8 0x300-0x307.7 (8)
|
||||
@ -157,9 +162,9 @@
|
||||
0x0320|00 00 00 00 |.... | reserved2: 0 0x320-0x323.7 (4)
|
||||
0x0320| 00 00 00 00 | .... | reserved3: 0 0x324-0x327.7 (4)
|
||||
| | | [1]{}: section 0x328-0x377.7 (80)
|
||||
0x0320| 5f 5f 64 61 74 61 00 00| __data..| sectname: "__data\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x328-0x337.7 (16)
|
||||
0x0320| 5f 5f 64 61 74 61 00 00| __data..| sectname: "__data" 0x328-0x337.7 (16)
|
||||
0x0330|00 00 00 00 00 00 00 00 |........ |
|
||||
0x0330| 5f 5f 44 41 54 41 00 00| __DATA..| segname: "__DATA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" 0x338-0x347.7 (16)
|
||||
0x0330| 5f 5f 44 41 54 41 00 00| __DATA..| segname: "__DATA" 0x338-0x347.7 (16)
|
||||
0x0340|00 00 00 00 00 00 00 00 |........ |
|
||||
0x0340| 08 80 00 00 00 00 00 00| ........| address: 0x8008 0x348-0x34f.7 (8)
|
||||
0x0350|08 00 00 00 00 00 00 00 |........ | size: 8 0x350-0x357.7 (8)
|
||||
@ -174,7 +179,8 @@
|
||||
| | | [3]{}: load_command 0x378-0x3bf.7 (72)
|
||||
0x0370| 19 00 00 00 | .... | cmd: "segment_64" (25) 0x378-0x37b.7 (4)
|
||||
0x0370| 48 00 00 00| H...| cmdsize: 72 0x37c-0x37f.7 (4)
|
||||
| | | segment_command_64{}: 0x380-0x3bf.7 (64)
|
||||
| | | segment_command{}: 0x380-0x3bf.7 (64)
|
||||
| | | arch_bits: 64 0x380-NA (0)
|
||||
0x0380|5f 5f 4c 49 4e 4b 45 44 49 54 00 00 00 00 00 00|__LINKEDIT......| segname: "__LINKEDIT" 0x380-0x38f.7 (16)
|
||||
0x0390|00 c0 00 00 00 00 00 00 |........ | vmaddr: 0xc000 0x390-0x397.7 (8)
|
||||
0x0390| 00 40 00 00 00 00 00 00| .@......| vmsize: 16384 0x398-0x39f.7 (8)
|
||||
|
Loading…
Reference in New Issue
Block a user