Index: llvm/test/tools/dsymutil/ARM/dwarf5-darwin.test =================================================================== --- /dev/null +++ llvm/test/tools/dsymutil/ARM/dwarf5-darwin.test @@ -0,0 +1,70 @@ +RUN: rm -rf %t.dir && mkdir -p %t.dir +RUN: yaml2obj %p/../Inputs/dwarf5-darwin.yaml -o %t.dir/dwarf5-darwin.o +RUN: dsymutil %t.dir/dwarf5-darwin.o -o %t.dir/dwarf5-darwin.dSYM +RUN: llvm-dwarfdump %t.dir/dwarf5-darwin.dSYM -a --verbose | FileCheck %s + +CHECK:.debug_abbrev contents: +CHECK-NEXT: Abbrev table for offset: 0x00000000 + +CHECK: .debug_info contents: +CHECK-NEXT: 0x00000000: Compile Unit: length = 0x00000096, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 + +CHECK: .debug_loclists contents: +CHECK-NEXT: 0x00000000: locations list header: length = 0x00000024, format = DWARF32, version = 0x0005, addr_size = 0x08, seg_size = 0x00, offset_entry_count = 0x00000000 + +CHECK: .debug_line contents: +CHECK-NEXT: debug_line[0x00000000] +CHECK-NEXT: Line table prologue: +CHECK-NEXT: total_length: 0x00000067 +CHECK-NEXT: format: DWARF32 +CHECK-NEXT: version: 5 +CHECK-NEXT: address_size: 8 +CHECK-NEXT: seg_select_size: 0 +CHECK-NEXT: prologue_length: 0x00000025 +CHECK-NEXT: min_inst_length: 1 +CHECK-NEXT: max_ops_per_inst: 1 +CHECK-NEXT: default_is_stmt: 1 +CHECK-NEXT: line_base: -5 +CHECK-NEXT: line_range: 14 +CHECK-NEXT: opcode_base: 13 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_copy] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_advance_pc] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_advance_line] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_file] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_column] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_negate_stmt] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_basic_block] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_const_add_pc] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_fixed_advance_pc] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_prologue_end] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_epilogue_begin] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_isa] = 1 +CHECK-NEXT: include_directories[ 0] = .debug_line_str[0x00000000] = "/Users/shubham/Development/test109275485" +CHECK-NEXT: file_names[ 0]: +CHECK-NEXT: name: .debug_line_str[0x00000029] = "a.cpp" +CHECK-NEXT: dir_index: 0 + +CHECK: .debug_str contents: + +CHECK: .debug_line_str contents: +CHECK-NEXT: 0x00000000: "/Users/shubham/Development/test109275485" +CHECK-NEXT: 0x00000029: "a.cpp" + +CHECK: .debug_rnglists contents: +CHECK-NEXT: 0x00000000: range list header: length = 0x0000001d, format = DWARF32, version = 0x0005, addr_size = 0x08, seg_size = 0x00, offset_entry_count = 0x00000000 +CHECK-NEXT: ranges: + +CHECK: .debug_names contents: +CHECK-NEXT: Name Index @ 0x0 { +CHECK-NEXT: Header { +CHECK-NEXT: Length: 0xC0 +CHECK-NEXT: Format: DWARF32 +CHECK-NEXT: Version: 5 +CHECK-NEXT: CU count: 1 +CHECK-NEXT: Local TU count: 0 +CHECK-NEXT: Foreign TU count: 0 +CHECK-NEXT: Bucket count: 6 +CHECK-NEXT: Name count: 6 +CHECK-NEXT: Abbreviations table size: 0xD +CHECK-NEXT: Augmentation: 'LLVM0700' +CHECK-NEXT: } Index: llvm/test/tools/dsymutil/ARM/dwarf5-dwarf4-comb.test =================================================================== --- /dev/null +++ llvm/test/tools/dsymutil/ARM/dwarf5-dwarf4-comb.test @@ -0,0 +1,107 @@ +RUN: rm -rf %t.dir && mkdir -p %t.dir +RUN: yaml2obj %p/../Inputs/dwarf5-dwarf4-darwin.yaml -o %t.dir/dwarf5-dwarf4-darwin.o +RUN: dsymutil %t.dir/dwarf5-dwarf4-darwin.o -o %t.dir/dwarf5-dwarf4-darwin.dSYM +RUN: llvm-dwarfdump %t.dir/dwarf5-dwarf4-darwin.dSYM -a --verbose | FileCheck %s + +CHECK:.debug_abbrev contents: +CHECK-NEXT: Abbrev table for offset: 0x00000000 + +CHECK: .debug_info contents: +CHECK-NEXT: 0x00000000: Compile Unit: length = 0x00000087, format = DWARF32, version = 0x0004, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x0000008b) +CHECK: 0x0000008b: Compile Unit: length = 0x00000096, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 + +CHECK: .debug_loc contents: +CHECK-NEXT: 0x00000000: + +CHECK: .debug_loclists contents: +CHECK-NEXT: 0x00000000: locations list header: length = 0x00000024, format = DWARF32, version = 0x0005, addr_size = 0x08, seg_size = 0x00, offset_entry_count = 0x00000000 + +CHECK: .debug_line contents: +CHECK-NEXT: debug_line[0x00000000] +CHECK-NEXT: Line table prologue: +CHECK-NEXT: total_length: 0x0000004e +CHECK-NEXT: format: DWARF32 +CHECK-NEXT: version: 4 +CHECK-NEXT: prologue_length: 0x0000001d +CHECK-NEXT: min_inst_length: 1 +CHECK-NEXT: max_ops_per_inst: 1 +CHECK-NEXT: default_is_stmt: 1 +CHECK-NEXT: line_base: -5 +CHECK-NEXT: line_range: 14 +CHECK-NEXT: opcode_base: 13 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_copy] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_advance_pc] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_advance_line] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_file] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_column] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_negate_stmt] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_basic_block] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_const_add_pc] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_fixed_advance_pc] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_prologue_end] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_epilogue_begin] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_isa] = 1 +CHECK-NEXT: file_names[ 1]: +CHECK-NEXT: name: "b.cpp" +CHECK-NEXT: dir_index: 0 +CHECK-NEXT: mod_time: 0x00000000 +CHECK-NEXT: length: 0x00000000 + +CHECK: debug_line[0x00000052] +CHECK-NEXT: Line table prologue: +CHECK-NEXT: total_length: 0x00000067 +CHECK-NEXT: format: DWARF32 +CHECK-NEXT: version: 5 +CHECK-NEXT: address_size: 8 +CHECK-NEXT: seg_select_size: 0 +CHECK-NEXT: prologue_length: 0x00000025 +CHECK-NEXT: min_inst_length: 1 +CHECK-NEXT: max_ops_per_inst: 1 +CHECK-NEXT: default_is_stmt: 1 +CHECK-NEXT: line_base: -5 +CHECK-NEXT: line_range: 14 +CHECK-NEXT: opcode_base: 13 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_copy] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_advance_pc] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_advance_line] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_file] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_column] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_negate_stmt] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_basic_block] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_const_add_pc] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_fixed_advance_pc] = 1 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_prologue_end] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_epilogue_begin] = 0 +CHECK-NEXT: standard_opcode_lengths[DW_LNS_set_isa] = 1 +CHECK-NEXT: include_directories[ 0] = .debug_line_str[0x00000000] = "/Users/shubham/Development/test109275485" +CHECK-NEXT: file_names[ 0]: +CHECK-NEXT: name: .debug_line_str[0x00000029] = "a.cpp" +CHECK-NEXT: dir_index: 0 + +CHECK: .debug_str contents: + +CHECK: .debug_line_str contents: +CHECK-NEXT: 0x00000000: "/Users/shubham/Development/test109275485" +CHECK-NEXT: 0x00000029: "a.cpp" + +CHECK: .debug_ranges contents: +CHECK-NEXT: 00000000 0000000000000000 0000000000000008 + +CHECK: .debug_rnglists contents: +CHECK-NEXT: 0x00000000: range list header: length = 0x0000001d, format = DWARF32, version = 0x0005, addr_size = 0x08, seg_size = 0x00, offset_entry_count = 0x00000000 +CHECK-NEXT: ranges: + +CHECK: .debug_names contents: +CHECK-NEXT: Name Index @ 0x0 { +CHECK-NEXT: Header { +CHECK-NEXT: Length: 0x11C +CHECK-NEXT: Format: DWARF32 +CHECK-NEXT: Version: 5 +CHECK-NEXT: CU count: 2 +CHECK-NEXT: Local TU count: 0 +CHECK-NEXT: Foreign TU count: 0 +CHECK-NEXT: Bucket count: 9 +CHECK-NEXT: Name count: 9 +CHECK-NEXT: Abbreviations table size: 0x11 +CHECK-NEXT: Augmentation: 'LLVM0700' +CHECK-NEXT: } Index: llvm/test/tools/dsymutil/Inputs/dwarf5-darwin.yaml =================================================================== --- /dev/null +++ llvm/test/tools/dsymutil/Inputs/dwarf5-darwin.yaml @@ -0,0 +1,310 @@ +--- !mach-o +FileHeader: + magic: 0xFEEDFACF + cputype: 0x100000C + cpusubtype: 0x0 + filetype: 0x2 + ncmds: 17 + sizeofcmds: 896 + flags: 0x200085 + reserved: 0x0 +LoadCommands: + - cmd: LC_SEGMENT_64 + cmdsize: 72 + segname: __PAGEZERO + vmaddr: 0 + vmsize: 4294967296 + fileoff: 0 + filesize: 0 + maxprot: 0 + initprot: 0 + nsects: 0 + flags: 0 + - cmd: LC_SEGMENT_64 + cmdsize: 232 + segname: __TEXT + vmaddr: 4294967296 + vmsize: 16384 + fileoff: 0 + filesize: 16384 + maxprot: 5 + initprot: 5 + nsects: 2 + flags: 0 + Sections: + - sectname: __text + segname: __TEXT + addr: 0x100003FA8 + size: 16 + offset: 0x3FA8 + align: 2 + reloff: 0x0 + nreloc: 0 + flags: 0x80000400 + reserved1: 0x0 + reserved2: 0x0 + reserved3: 0x0 + content: 00140011C0035FD620008052C0035FD6 + - sectname: __unwind_info + segname: __TEXT + addr: 0x100003FB8 + size: 72 + offset: 0x3FB8 + align: 2 + reloff: 0x0 + nreloc: 0 + flags: 0x0 + reserved1: 0x0 + reserved2: 0x0 + reserved3: 0x0 + content: 010000001C000000000000001C000000000000001C00000002000000A83F00003400000034000000054000000000000034000000030000000C000100100001000000000000000002 + - cmd: LC_SEGMENT_64 + cmdsize: 152 + segname: '1' + vmaddr: 4294983680 + vmsize: 16384 + fileoff: 16384 + filesize: 16384 + maxprot: 3 + initprot: 3 + nsects: 1 + flags: 0 + Sections: + - sectname: __text_foo + segname: '1' + addr: 0x100004000 + size: 4 + offset: 0x4000 + align: 2 + reloff: 0x0 + nreloc: 0 + flags: 0x0 + reserved1: 0x0 + reserved2: 0x0 + reserved3: 0x0 + content: C0035FD6 + - cmd: LC_SEGMENT_64 + cmdsize: 72 + segname: __LINKEDIT + vmaddr: 4295000064 + vmsize: 16384 + fileoff: 32768 + filesize: 1029 + maxprot: 1 + initprot: 1 + nsects: 0 + flags: 0 + - cmd: LC_DYLD_CHAINED_FIXUPS + cmdsize: 16 + dataoff: 32768 + datasize: 56 + - cmd: LC_DYLD_EXPORTS_TRIE + cmdsize: 16 + dataoff: 32824 + datasize: 80 + - cmd: LC_SYMTAB + cmdsize: 24 + symoff: 32912 + nsyms: 18 + stroff: 33200 + strsize: 184 + - cmd: LC_DYSYMTAB + cmdsize: 80 + ilocalsym: 0 + nlocalsym: 14 + iextdefsym: 14 + nextdefsym: 4 + iundefsym: 18 + nundefsym: 0 + tocoff: 0 + ntoc: 0 + modtaboff: 0 + nmodtab: 0 + extrefsymoff: 0 + nextrefsyms: 0 + indirectsymoff: 0 + nindirectsyms: 0 + extreloff: 0 + nextrel: 0 + locreloff: 0 + nlocrel: 0 + - cmd: LC_LOAD_DYLINKER + cmdsize: 32 + name: 12 + Content: '/usr/lib/dyld' + ZeroPadBytes: 7 + - cmd: LC_UUID + cmdsize: 24 + uuid: 84A58F19-2D90-360D-BA4A-7D3D445487EB + - cmd: LC_BUILD_VERSION + cmdsize: 32 + platform: 1 + minos: 851968 + sdk: 917504 + ntools: 1 + Tools: + - tool: 3 + version: 59115520 + - cmd: LC_SOURCE_VERSION + cmdsize: 16 + version: 0 + - cmd: LC_MAIN + cmdsize: 24 + entryoff: 16304 + stacksize: 0 + - cmd: LC_LOAD_DYLIB + cmdsize: 56 + dylib: + name: 24 + timestamp: 2 + current_version: 87556096 + compatibility_version: 65536 + Content: '/usr/lib/libSystem.B.dylib' + ZeroPadBytes: 6 + - cmd: LC_FUNCTION_STARTS + cmdsize: 16 + dataoff: 32904 + datasize: 8 + - cmd: LC_DATA_IN_CODE + cmdsize: 16 + dataoff: 32912 + datasize: 0 + - cmd: LC_CODE_SIGNATURE + cmdsize: 16 + dataoff: 33392 + datasize: 405 +LinkEditData: + ExportTrie: + TerminalSize: 0 + NodeOffset: 0 + Name: '' + Flags: 0x0 + Address: 0x0 + Other: 0x0 + ImportName: '' + Children: + - TerminalSize: 4 + NodeOffset: 61 + Name: _ + Flags: 0x0 + Address: 0x4000 + Other: 0x0 + ImportName: '' + NameList: + - n_strx: 1 + n_type: 0x64 + n_sect: 1 + n_desc: 0 + n_value: 0 + - n_strx: 47 + n_type: 0x64 + n_sect: 0 + n_desc: 0 + n_value: 0 + - n_strx: 98 + n_type: 0x64 + n_sect: 0 + n_desc: 0 + n_value: 0 + - n_strx: 104 + n_type: 0x66 + n_sect: 0 + n_desc: 1 + n_value: 1685637488 + - n_strx: 1 + n_type: 0x2E + n_sect: 1 + n_desc: 0 + n_value: 4294983592 + - n_strx: 152 + n_type: 0x24 + n_sect: 1 + n_desc: 0 + n_value: 4294983592 + - n_strx: 1 + n_type: 0x24 + n_sect: 0 + n_desc: 0 + n_value: 8 + - n_strx: 1 + n_type: 0x4E + n_sect: 1 + n_desc: 0 + n_value: 4294983592 + - n_strx: 1 + n_type: 0x2E + n_sect: 1 + n_desc: 0 + n_value: 4294983600 + - n_strx: 162 + n_type: 0x24 + n_sect: 1 + n_desc: 0 + n_value: 4294983600 + - n_strx: 1 + n_type: 0x24 + n_sect: 0 + n_desc: 0 + n_value: 8 + - n_strx: 1 + n_type: 0x4E + n_sect: 1 + n_desc: 0 + n_value: 4294983600 + - n_strx: 168 + n_type: 0x20 + n_sect: 0 + n_desc: 0 + n_value: 0 + - n_strx: 1 + n_type: 0x64 + n_sect: 1 + n_desc: 0 + n_value: 0 + - n_strx: 2 + n_type: 0xF + n_sect: 3 + n_desc: 0 + n_value: 4294983680 + - n_strx: 11 + n_type: 0xF + n_sect: 1 + n_desc: 0 + n_value: 4294983592 + - n_strx: 21 + n_type: 0xF + n_sect: 1 + n_desc: 16 + n_value: 4294967296 + - n_strx: 41 + n_type: 0xF + n_sect: 1 + n_desc: 0 + n_value: 4294983600 + StringTable: + - ' ' + - __Z3foov + - __Z4foo2i + - __mh_execute_header + - _main + - 'Apple clang version 14.0.3 (clang-1403.0.22.14.1)/' + - a.cpp + - '/Users/shubham/Development/test109275485/a-d5.o' + - __Z4foo2i + - _main + - __Z3foov + - '' + - '' + - '' + - '' + - '' + - '' + - '' + FunctionStarts: [ 0x3FA8, 0x3FB0 ] + ChainedFixups: [ 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x34, 0x0, + 0x0, 0x0, 0x34, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ] +... Index: llvm/test/tools/dsymutil/Inputs/dwarf5-dwarf4-darwin.yaml =================================================================== --- /dev/null +++ llvm/test/tools/dsymutil/Inputs/dwarf5-dwarf4-darwin.yaml @@ -0,0 +1,379 @@ +--- !mach-o +FileHeader: + magic: 0xFEEDFACF + cputype: 0x100000C + cpusubtype: 0x0 + filetype: 0x2 + ncmds: 17 + sizeofcmds: 976 + flags: 0x200085 + reserved: 0x0 +LoadCommands: + - cmd: LC_SEGMENT_64 + cmdsize: 72 + segname: __PAGEZERO + vmaddr: 0 + vmsize: 4294967296 + fileoff: 0 + filesize: 0 + maxprot: 0 + initprot: 0 + nsects: 0 + flags: 0 + - cmd: LC_SEGMENT_64 + cmdsize: 232 + segname: __TEXT + vmaddr: 4294967296 + vmsize: 16384 + fileoff: 0 + filesize: 16384 + maxprot: 5 + initprot: 5 + nsects: 2 + flags: 0 + Sections: + - sectname: __text + segname: __TEXT + addr: 0x100003FA0 + size: 24 + offset: 0x3FA0 + align: 2 + reloff: 0x0 + nreloc: 0 + flags: 0x80000400 + reserved1: 0x0 + reserved2: 0x0 + reserved3: 0x0 + content: 00080011C0035FD600140011C0035FD620008052C0035FD6 + - sectname: __unwind_info + segname: __TEXT + addr: 0x100003FB8 + size: 72 + offset: 0x3FB8 + align: 2 + reloff: 0x0 + nreloc: 0 + flags: 0x0 + reserved1: 0x0 + reserved2: 0x0 + reserved3: 0x0 + content: 010000001C000000000000001C000000000000001C00000002000000A03F00003400000034000000094000000000000034000000030000000C000100100001000000000000000002 + - cmd: LC_SEGMENT_64 + cmdsize: 232 + segname: '1' + vmaddr: 4294983680 + vmsize: 16384 + fileoff: 16384 + filesize: 16384 + maxprot: 3 + initprot: 3 + nsects: 2 + flags: 0 + Sections: + - sectname: __text_foo2 + segname: '1' + addr: 0x100004000 + size: 4 + offset: 0x4000 + align: 2 + reloff: 0x0 + nreloc: 0 + flags: 0x0 + reserved1: 0x0 + reserved2: 0x0 + reserved3: 0x0 + content: C0035FD6 + - sectname: __text_foo + segname: '1' + addr: 0x100004004 + size: 4 + offset: 0x4004 + align: 2 + reloff: 0x0 + nreloc: 0 + flags: 0x0 + reserved1: 0x0 + reserved2: 0x0 + reserved3: 0x0 + content: C0035FD6 + - cmd: LC_SEGMENT_64 + cmdsize: 72 + segname: __LINKEDIT + vmaddr: 4295000064 + vmsize: 16384 + fileoff: 32768 + filesize: 1370 + maxprot: 1 + initprot: 1 + nsects: 0 + flags: 0 + - cmd: LC_DYLD_CHAINED_FIXUPS + cmdsize: 16 + dataoff: 32768 + datasize: 56 + - cmd: LC_DYLD_EXPORTS_TRIE + cmdsize: 16 + dataoff: 32824 + datasize: 112 + - cmd: LC_SYMTAB + cmdsize: 24 + symoff: 32944 + nsyms: 29 + stroff: 33408 + strsize: 312 + - cmd: LC_DYSYMTAB + cmdsize: 80 + ilocalsym: 0 + nlocalsym: 23 + iextdefsym: 23 + nextdefsym: 6 + iundefsym: 29 + nundefsym: 0 + tocoff: 0 + ntoc: 0 + modtaboff: 0 + nmodtab: 0 + extrefsymoff: 0 + nextrefsyms: 0 + indirectsymoff: 0 + nindirectsyms: 0 + extreloff: 0 + nextrel: 0 + locreloff: 0 + nlocrel: 0 + - cmd: LC_LOAD_DYLINKER + cmdsize: 32 + name: 12 + Content: '/usr/lib/dyld' + ZeroPadBytes: 7 + - cmd: LC_UUID + cmdsize: 24 + uuid: 81A626C2-9899-326C-8A04-83E5C4582493 + - cmd: LC_BUILD_VERSION + cmdsize: 32 + platform: 1 + minos: 851968 + sdk: 917504 + ntools: 1 + Tools: + - tool: 3 + version: 59115520 + - cmd: LC_SOURCE_VERSION + cmdsize: 16 + version: 0 + - cmd: LC_MAIN + cmdsize: 24 + entryoff: 16304 + stacksize: 0 + - cmd: LC_LOAD_DYLIB + cmdsize: 56 + dylib: + name: 24 + timestamp: 2 + current_version: 87556096 + compatibility_version: 65536 + Content: '/usr/lib/libSystem.B.dylib' + ZeroPadBytes: 6 + - cmd: LC_FUNCTION_STARTS + cmdsize: 16 + dataoff: 32936 + datasize: 8 + - cmd: LC_DATA_IN_CODE + cmdsize: 16 + dataoff: 32944 + datasize: 0 + - cmd: LC_CODE_SIGNATURE + cmdsize: 16 + dataoff: 33728 + datasize: 410 +LinkEditData: + ExportTrie: + TerminalSize: 0 + NodeOffset: 0 + Name: '' + Flags: 0x0 + Address: 0x0 + Other: 0x0 + ImportName: '' + Children: + - TerminalSize: 3 + NodeOffset: 89 + Name: _ + Flags: 0x0 + Address: 0x3FA0 + Other: 0x0 + ImportName: '' + NameList: + - n_strx: 1 + n_type: 0x64 + n_sect: 1 + n_desc: 0 + n_value: 0 + - n_strx: 66 + n_type: 0x64 + n_sect: 0 + n_desc: 0 + n_value: 0 + - n_strx: 108 + n_type: 0x64 + n_sect: 0 + n_desc: 0 + n_value: 0 + - n_strx: 114 + n_type: 0x66 + n_sect: 0 + n_desc: 1 + n_value: 1685651851 + - n_strx: 1 + n_type: 0x2E + n_sect: 1 + n_desc: 0 + n_value: 4294983584 + - n_strx: 162 + n_type: 0x24 + n_sect: 1 + n_desc: 0 + n_value: 4294983584 + - n_strx: 1 + n_type: 0x24 + n_sect: 0 + n_desc: 0 + n_value: 8 + - n_strx: 1 + n_type: 0x4E + n_sect: 1 + n_desc: 0 + n_value: 4294983584 + - n_strx: 171 + n_type: 0x20 + n_sect: 0 + n_desc: 0 + n_value: 0 + - n_strx: 1 + n_type: 0x64 + n_sect: 1 + n_desc: 0 + n_value: 0 + - n_strx: 181 + n_type: 0x64 + n_sect: 0 + n_desc: 0 + n_value: 0 + - n_strx: 232 + n_type: 0x64 + n_sect: 0 + n_desc: 0 + n_value: 0 + - n_strx: 238 + n_type: 0x66 + n_sect: 0 + n_desc: 1 + n_value: 1685637488 + - n_strx: 1 + n_type: 0x2E + n_sect: 1 + n_desc: 0 + n_value: 4294983592 + - n_strx: 286 + n_type: 0x24 + n_sect: 1 + n_desc: 0 + n_value: 4294983592 + - n_strx: 1 + n_type: 0x24 + n_sect: 0 + n_desc: 0 + n_value: 8 + - n_strx: 1 + n_type: 0x4E + n_sect: 1 + n_desc: 0 + n_value: 4294983592 + - n_strx: 1 + n_type: 0x2E + n_sect: 1 + n_desc: 0 + n_value: 4294983600 + - n_strx: 296 + n_type: 0x24 + n_sect: 1 + n_desc: 0 + n_value: 4294983600 + - n_strx: 1 + n_type: 0x24 + n_sect: 0 + n_desc: 0 + n_value: 8 + - n_strx: 1 + n_type: 0x4E + n_sect: 1 + n_desc: 0 + n_value: 4294983600 + - n_strx: 302 + n_type: 0x20 + n_sect: 0 + n_desc: 0 + n_value: 0 + - n_strx: 1 + n_type: 0x64 + n_sect: 1 + n_desc: 0 + n_value: 0 + - n_strx: 2 + n_type: 0xF + n_sect: 1 + n_desc: 0 + n_value: 4294983584 + - n_strx: 11 + n_type: 0xF + n_sect: 4 + n_desc: 0 + n_value: 4294983684 + - n_strx: 20 + n_type: 0xF + n_sect: 1 + n_desc: 0 + n_value: 4294983592 + - n_strx: 30 + n_type: 0xF + n_sect: 3 + n_desc: 0 + n_value: 4294983680 + - n_strx: 40 + n_type: 0xF + n_sect: 1 + n_desc: 16 + n_value: 4294967296 + - n_strx: 60 + n_type: 0xF + n_sect: 1 + n_desc: 0 + n_value: 4294983600 + StringTable: + - ' ' + - __Z3bari + - __Z3foov + - __Z4foo2i + - __Z4foo2v + - __mh_execute_header + - _main + - '/Users/shubham/Development/test109275485/' + - b.cpp + - '/Users/shubham/Development/test109275485/b-d4.o' + - __Z3bari + - __Z4foo2v + - 'Apple clang version 14.0.3 (clang-1403.0.22.14.1)/' + - a.cpp + - '/Users/shubham/Development/test109275485/a-d5.o' + - __Z4foo2i + - _main + - __Z3foov + - '' + FunctionStarts: [ 0x3FA0, 0x3FA8, 0x3FB0 ] + ChainedFixups: [ 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x34, 0x0, + 0x0, 0x0, 0x34, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ] +...