1
1
mirror of https://github.com/wader/fq.git synced 2024-11-24 11:16:09 +03:00

macho: update test cases v to dv

This commit is contained in:
siddik.acil 2022-01-30 21:48:32 +01:00
parent e3daee7d94
commit 2ccb8087b0
5 changed files with 12 additions and 12 deletions

View File

@ -29,4 +29,4 @@ all-platforms-actual:
make actual DIR=darwin_amd64
actual:
cd $(DIR) && echo $(TARGETS) | tr -s '[:blank:]' '\n' | grep -ivE '.*\.o$$' | xargs -I '{}' sh -c 'echo "$$ fq -d macho v {}" > {}.fqtest && $(FQ) -d macho v {} >> {}.fqtest'
cd $(DIR) && echo $(TARGETS) | tr -s '[:blank:]' '\n' | grep -ivE '.*\.o$$' | xargs -I '{}' sh -c 'echo "$$ fq -d macho dv {}" > {}.fqtest && $(FQ) -d macho dv {} >> {}.fqtest'

View File

@ -1,4 +1,4 @@
$ fq -d macho v a_dynamic
$ fq -d macho dv 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)
@ -426,7 +426,7 @@ $ fq -d macho v a_dynamic
0x0520| 28 00 00 00 | (... | cmdsize: 40 0x524-0x527.7 (4)
| | | dylib_command{}: 0x528-0x547.7 (32)
0x0520| 18 00 00 00 | .... | offset: 24 0x528-0x52b.7 (4)
0x0520| 02 00 00 00| ....| timestamp: 2 0x52c-0x52f.7 (4)
0x0520| 02 00 00 00| ....| timestamp: "1970-01-01 01:00:00.002 +0100 CET" (2) 0x52c-0x52f.7 (4)
0x0530|00 00 00 00 |.... | current_version: 0 0x530-0x533.7 (4)
0x0530| 00 00 00 00 | .... | compatibility_version: 0 0x534-0x537.7 (4)
0x0530| 6c 69 62 62 62 62 2e 73| libbbb.s| name: "libbbb.so" 0x538-0x547.7 (16)
@ -436,7 +436,7 @@ $ fq -d macho v a_dynamic
0x0540| 38 00 00 00| 8...| cmdsize: 56 0x54c-0x54f.7 (4)
| | | dylib_command{}: 0x550-0x57f.7 (48)
0x0550|18 00 00 00 |.... | offset: 24 0x550-0x553.7 (4)
0x0550| 02 00 00 00 | .... | timestamp: 2 0x554-0x557.7 (4)
0x0550| 02 00 00 00 | .... | timestamp: "1970-01-01 01:00:00.002 +0100 CET" (2) 0x554-0x557.7 (4)
0x0550| 00 00 1f 05 | .... | current_version: 85917696 0x558-0x55b.7 (4)
0x0550| 00 00 01 00| ....| compatibility_version: 65536 0x55c-0x55f.7 (4)
0x0560|2f 75 73 72 2f 6c 69 62 2f 6c 69 62 53 79 73 74|/usr/lib/libSyst| name: "/usr/lib/libSystem.B.dylib" 0x560-0x57f.7 (32)

View File

@ -1,4 +1,4 @@
$ fq -d macho v a_static
$ fq -d macho dv 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)
@ -426,7 +426,7 @@ $ fq -d macho v a_static
0x0520| 38 00 00 00 | 8... | cmdsize: 56 0x524-0x527.7 (4)
| | | dylib_command{}: 0x528-0x557.7 (48)
0x0520| 18 00 00 00 | .... | offset: 24 0x528-0x52b.7 (4)
0x0520| 02 00 00 00| ....| timestamp: 2 0x52c-0x52f.7 (4)
0x0520| 02 00 00 00| ....| timestamp: "1970-01-01 01:00:00.002 +0100 CET" (2) 0x52c-0x52f.7 (4)
0x0530|00 00 1f 05 |.... | current_version: 85917696 0x530-0x533.7 (4)
0x0530| 00 00 01 00 | .... | compatibility_version: 65536 0x534-0x537.7 (4)
0x0530| 2f 75 73 72 2f 6c 69 62| /usr/lib| name: "/usr/lib/libSystem.B.dylib" 0x538-0x557.7 (32)

View File

@ -1,4 +1,4 @@
$ fq -d macho v a_stripped
$ fq -d macho dv 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)
@ -426,7 +426,7 @@ $ fq -d macho v a_stripped
0x0520| 28 00 00 00 | (... | cmdsize: 40 0x524-0x527.7 (4)
| | | dylib_command{}: 0x528-0x547.7 (32)
0x0520| 18 00 00 00 | .... | offset: 24 0x528-0x52b.7 (4)
0x0520| 02 00 00 00| ....| timestamp: 2 0x52c-0x52f.7 (4)
0x0520| 02 00 00 00| ....| timestamp: "1970-01-01 01:00:00.002 +0100 CET" (2) 0x52c-0x52f.7 (4)
0x0530|00 00 00 00 |.... | current_version: 0 0x530-0x533.7 (4)
0x0530| 00 00 00 00 | .... | compatibility_version: 0 0x534-0x537.7 (4)
0x0530| 6c 69 62 62 62 62 2e 73| libbbb.s| name: "libbbb.so" 0x538-0x547.7 (16)
@ -436,7 +436,7 @@ $ fq -d macho v a_stripped
0x0540| 38 00 00 00| 8...| cmdsize: 56 0x54c-0x54f.7 (4)
| | | dylib_command{}: 0x550-0x57f.7 (48)
0x0550|18 00 00 00 |.... | offset: 24 0x550-0x553.7 (4)
0x0550| 02 00 00 00 | .... | timestamp: 2 0x554-0x557.7 (4)
0x0550| 02 00 00 00 | .... | timestamp: "1970-01-01 01:00:00.002 +0100 CET" (2) 0x554-0x557.7 (4)
0x0550| 00 00 1f 05 | .... | current_version: 85917696 0x558-0x55b.7 (4)
0x0550| 00 00 01 00| ....| compatibility_version: 65536 0x55c-0x55f.7 (4)
0x0560|2f 75 73 72 2f 6c 69 62 2f 6c 69 62 53 79 73 74|/usr/lib/libSyst| name: "/usr/lib/libSystem.B.dylib" 0x560-0x57f.7 (32)

View File

@ -1,4 +1,4 @@
$ fq -d macho v libbbb.so
$ fq -d macho dv 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)
@ -341,7 +341,7 @@ $ fq -d macho v libbbb.so
0x03c0| 28 00 00 00 | (... | cmdsize: 40 0x3c4-0x3c7.7 (4)
| | | dylib_command{}: 0x3c8-0x3e7.7 (32)
0x03c0| 18 00 00 00 | .... | offset: 24 0x3c8-0x3cb.7 (4)
0x03c0| 01 00 00 00| ....| timestamp: 1 0x3cc-0x3cf.7 (4)
0x03c0| 01 00 00 00| ....| timestamp: "1970-01-01 01:00:00.001 +0100 CET" (1) 0x3cc-0x3cf.7 (4)
0x03d0|00 00 00 00 |.... | current_version: 0 0x3d0-0x3d3.7 (4)
0x03d0| 00 00 00 00 | .... | compatibility_version: 0 0x3d4-0x3d7.7 (4)
0x03d0| 6c 69 62 62 62 62 2e 73| libbbb.s| name: "libbbb.so" 0x3d8-0x3e7.7 (16)
@ -415,7 +415,7 @@ $ fq -d macho v libbbb.so
0x04c0| 38 00 00 00| 8...| cmdsize: 56 0x4cc-0x4cf.7 (4)
| | | dylib_command{}: 0x4d0-0x4ff.7 (48)
0x04d0|18 00 00 00 |.... | offset: 24 0x4d0-0x4d3.7 (4)
0x04d0| 02 00 00 00 | .... | timestamp: 2 0x4d4-0x4d7.7 (4)
0x04d0| 02 00 00 00 | .... | timestamp: "1970-01-01 01:00:00.002 +0100 CET" (2) 0x4d4-0x4d7.7 (4)
0x04d0| 00 00 1f 05 | .... | current_version: 85917696 0x4d8-0x4db.7 (4)
0x04d0| 00 00 01 00| ....| compatibility_version: 65536 0x4dc-0x4df.7 (4)
0x04e0|2f 75 73 72 2f 6c 69 62 2f 6c 69 62 53 79 73 74|/usr/lib/libSyst| name: "/usr/lib/libSystem.B.dylib" 0x4e0-0x4ff.7 (32)