llvm/llvm/test/tools/llvm-readtapi/Inputs/thread_local.yaml

--- !mach-o
FileHeader:
  magic:           0xFEEDFACF
  cputype:         0x01000007
  cpusubtype:      0x00000003
  filetype:        0x00000006
  ncmds:           13
  sizeofcmds:      872
  flags:           0x00900085
  reserved:        0x00000000
LoadCommands:
  - cmd:             LC_SEGMENT_64
    cmdsize:         152
    segname:         __TEXT
    vmaddr:          0
    vmsize:          16384
    fileoff:         0
    filesize:        16384
    maxprot:         5
    initprot:        5
    nsects:          1
    flags:           0
    Sections:
      - sectname:        __text
        segname:         __TEXT
        addr:            0x0000000000004000
        size:            0
        offset:          0x00004000
        align:           0
        reloff:          0x00000000
        nreloc:          0
        flags:           0x80000400
        reserved1:       0x00000000
        reserved2:       0x00000000
        reserved3:       0x00000000
        content:         ''
  - cmd:             LC_SEGMENT_64
    cmdsize:         232
    segname:         __DATA
    vmaddr:          16384
    vmsize:          16384
    fileoff:         16384
    filesize:        16384
    maxprot:         3
    initprot:        3
    nsects:          2
    flags:           0
    Sections:
      - sectname:        __thread_vars
        segname:         __DATA
        addr:            0x0000000000004000
        size:            24
        offset:          0x00004000
        align:           3
        reloff:          0x00000000
        nreloc:          0
        flags:           0x00000013
        reserved1:       0x00000000
        reserved2:       0x00000000
        reserved3:       0x00000000
        content:         '000000000000000000000000000000000000000000000000'
      - sectname:        __thread_bss
        segname:         __DATA
        addr:            0x0000000000004018
        size:            1
        offset:          0x00000000
        align:           0
        reloff:          0x00000000
        nreloc:          0
        flags:           0x00000012
        reserved1:       0x00000000
        reserved2:       0x00000000
        reserved3:       0x00000000
  - cmd:             LC_SEGMENT_64
    cmdsize:         72
    segname:         __LINKEDIT
    vmaddr:          32768
    vmsize:          16384
    fileoff:         32768
    filesize:        184
    maxprot:         1
    initprot:        1
    nsects:          0
    flags:           0
  - cmd:             LC_ID_DYLIB
    cmdsize:         104
    dylib:
      name:            24
      timestamp:       1
      current_version: 0
      compatibility_version: 0
    Content:   '/System/Library/Frameworks/ThreadLocal.framework/ThreadLocal'
    ZeroPadBytes:    2
  - cmd:             LC_DYLD_INFO_ONLY
    cmdsize:         48
    rebase_off:      0
    rebase_size:     0
    bind_off:        32768
    bind_size:       24
    weak_bind_off:   0
    weak_bind_size:  0
    lazy_bind_off:   0
    lazy_bind_size:  0
    export_off:      32792
    export_size:     24
  - cmd:             LC_SYMTAB
    cmdsize:         24
    symoff:          32824
    nsyms:           4
    stroff:          32888
    strsize:         64
  - cmd:             LC_DYSYMTAB
    cmdsize:         80
    ilocalsym:       0
    nlocalsym:       1
    iextdefsym:      1
    nextdefsym:      1
    iundefsym:       2
    nundefsym:       2
    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_UUID
    cmdsize:         24
    uuid:            E4FA1DB7-CD39-3568-B80D-BFAF224E5ADC
  - cmd:             LC_BUILD_VERSION
    cmdsize:         32
    platform:        1
    minos:           720896
    sdk:             720896
    ntools:          1
    Tools:
      - tool:            3
        version:         39913216
  - cmd:             LC_SOURCE_VERSION
    cmdsize:         16
    version:         0
  - cmd:             LC_LOAD_DYLIB
    cmdsize:         56
    dylib:
      name:            24
      timestamp:       2
      current_version: 84672512
      compatibility_version: 65536
    Content:   '/usr/lib/libSystem.B.dylib'
    ZeroPadBytes:    6
  - cmd:             LC_FUNCTION_STARTS
    cmdsize:         16
    dataoff:         32816
    datasize:        8
  - cmd:             LC_DATA_IN_CODE
    cmdsize:         16
    dataoff:         32824
    datasize:        0
LinkEditData:
  BindOpcodes:
    - Opcode:          BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
      Imm:             1
      Symbol:          ''
    - Opcode:          BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
      Imm:             0
      Symbol:          __tlv_bootstrap
    - Opcode:          BIND_OPCODE_SET_TYPE_IMM
      Imm:             1
      Symbol:          ''
    - Opcode:          BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
      Imm:             1
      ULEBExtraData:   [ 0x0000000000000000 ]
      Symbol:          ''
    - Opcode:          BIND_OPCODE_DO_BIND
      Imm:             0
      Symbol:          ''
    - Opcode:          BIND_OPCODE_DONE
      Imm:             0
      Symbol:          ''
  ExportTrie:
    TerminalSize:    0
    NodeOffset:      0
    Name:            ''
    Flags:           0x0000000000000000
    Address:         0x0000000000000000
    Other:           0x0000000000000000
    ImportName:      ''
    Children:
      - TerminalSize:    4
        NodeOffset:      13
        Name:            _MySymbol
        Flags:           0x0000000000000001
        Address:         0x0000000000004000
        Other:           0x0000000000000000
        ImportName:      ''
  NameList:
    - n_strx:          45
      n_type:          0x0E
      n_sect:          3
      n_desc:          0
      n_value:         16408
    - n_strx:          2
      n_type:          0x0F
      n_sect:          2
      n_desc:          0
      n_value:         16384
    - n_strx:          12
      n_type:          0x01
      n_sect:          0
      n_desc:          256
      n_value:         0
    - n_strx:          28
      n_type:          0x01
      n_sect:          0
      n_desc:          256
      n_value:         0
  StringTable:
    - ' '
    - _MySymbol
    - __tlv_bootstrap
    - dyld_stub_binder
    - '_MySymbol$tlv$init'
...