1# RUN: yaml2obj %s -o %t.o 2# RUN: %lldb -b -o 'target modules lookup -s absolute_symbol' %t.o | FileCheck %s 3# CHECK: 1 symbols match 'absolute_symbol' 4# CHECK: Name: absolute_symbol 5# CHECK: Value: 0x0000000012345678 6# Created from: 7# .globl absolute_symbol 8# absolute_symbol = 0x12345678 9--- !mach-o 10FileHeader: 11 magic: 0xFEEDFACF 12 cputype: 0x100000C 13 cpusubtype: 0x0 14 filetype: 0x1 15 ncmds: 4 16 sizeofcmds: 280 17 flags: 0x0 18 reserved: 0x0 19LoadCommands: 20 - cmd: LC_SEGMENT_64 21 cmdsize: 152 22 segname: '' 23 vmaddr: 0 24 vmsize: 0 25 fileoff: 312 26 filesize: 0 27 maxprot: 7 28 initprot: 7 29 nsects: 1 30 flags: 0 31 Sections: 32 - sectname: __text 33 segname: __TEXT 34 addr: 0x0 35 size: 0 36 offset: 0x138 37 align: 0 38 reloff: 0x0 39 nreloc: 0 40 flags: 0x80000000 41 reserved1: 0x0 42 reserved2: 0x0 43 reserved3: 0x0 44 content: '' 45 - cmd: LC_BUILD_VERSION 46 cmdsize: 24 47 platform: 1 48 minos: 786432 49 sdk: 0 50 ntools: 0 51 - cmd: LC_SYMTAB 52 cmdsize: 24 53 symoff: 312 54 nsyms: 2 55 stroff: 344 56 strsize: 24 57 - cmd: LC_DYSYMTAB 58 cmdsize: 80 59 ilocalsym: 0 60 nlocalsym: 1 61 iextdefsym: 1 62 nextdefsym: 1 63 iundefsym: 2 64 nundefsym: 0 65 tocoff: 0 66 ntoc: 0 67 modtaboff: 0 68 nmodtab: 0 69 extrefsymoff: 0 70 nextrefsyms: 0 71 indirectsymoff: 0 72 nindirectsyms: 0 73 extreloff: 0 74 nextrel: 0 75 locreloff: 0 76 nlocrel: 0 77LinkEditData: 78 NameList: 79 - n_strx: 17 80 n_type: 0xE 81 n_sect: 1 82 n_desc: 0 83 n_value: 0 84 - n_strx: 1 85 n_type: 0x3 86 n_sect: 0 87 n_desc: 0 88 n_value: 305419896 89 StringTable: 90 - '' 91 - absolute_symbol 92 - ltmp0 93 - '' 94... 95