brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.8 KiB · fd558e8 Raw
142 lines · plain
1# REQUIRES: x862## FIXME: This yaml is from an object file produced with 'ld -r':3##4##   echo "int main() {return 1;}" > test.c5##   clang -c -g -o test.o test.c6##   ld -r -o test2.o test.o -no_data_in_code_info7##8## Replace this with "normal" .s test format once lld supports `-r`9 10# RUN: yaml2obj %s -o %t.o11# RUN: %lld -lSystem -arch x86_64 %t.o -o %t12 13--- !mach-o14FileHeader:15  magic:           0xFEEDFACF16  cputype:         0x100000717  cpusubtype:      0x318  filetype:        0x119  ncmds:           320  sizeofcmds:      28821  flags:           0x200022  reserved:        0x023LoadCommands:24  - cmd:             LC_SEGMENT_6425    cmdsize:         23226    segname:         ''27    vmaddr:          028    vmsize:          5629    fileoff:         35230    filesize:        5631    maxprot:         732    initprot:        733    nsects:          234    flags:           035    Sections:36      - sectname:        __text37        segname:         __TEXT38        addr:            0x039        size:            1840        offset:          0x16041        align:           442        reloff:          0x043        nreloc:          044        flags:           0x8000040045        reserved1:       0x046        reserved2:       0x047        reserved3:       0x048        content:         554889E5C745FC00000000B8010000005DC349      - sectname:        __compact_unwind50        segname:         __LD51        addr:            0x1852        size:            3253        offset:          0x17854        align:           355        reloff:          0x19856        nreloc:          157        flags:           0x200000058        reserved1:       0x059        reserved2:       0x060        reserved3:       0x061        content:         '0000000000000000120000000000000100000000000000000000000000000000'62        relocations:63          - address:         0x064            symbolnum:       865            pcrel:           false66            length:          367            extern:          true68            type:            069            scattered:       false70            value:           071  - cmd:             LC_SYMTAB72    cmdsize:         2473    symoff:          41674    nsyms:           975    stroff:          56076    strsize:         4877  - cmd:             LC_BUILD_VERSION78    cmdsize:         3279    platform:        180    minos:           65920081    sdk:             082    ntools:          183    Tools:84      - tool:            385        version:         4659609686LinkEditData:87  NameList:88    - n_strx:          889      n_type:          0x64 ## N_SO STAB90      n_sect:          091      n_desc:          092      n_value:         093    - n_strx:          1494      n_type:          0x64 ## N_SO STAB95      n_sect:          096      n_desc:          097      n_value:         098    - n_strx:          2199      n_type:          0x66 ## N_OSO STAB100      n_sect:          3101      n_desc:          1102      n_value:         1651001352103    - n_strx:          1104      n_type:          0x2E ## N_BNSYM STAB105      n_sect:          1106      n_desc:          0107      n_value:         0108    - n_strx:          41109      n_type:          0x24 ## N_FUN STAB110      n_sect:          1111      n_desc:          0112      n_value:         0113    - n_strx:          1114      n_type:          0x24 ## N_FUN STAB115      n_sect:          0116      n_desc:          0117      n_value:         18118    - n_strx:          1119      n_type:          0x4E ## N_ENSYM STAB120      n_sect:          1121      n_desc:          0122      n_value:         18123    - n_strx:          1124      n_type:          0x64 ## N_SO STAB125      n_sect:          1126      n_desc:          0127      n_value:         0128    - n_strx:          2129      n_type:          0xF130      n_sect:          1131      n_desc:          0132      n_value:         0133  StringTable:134    - ' '135    - _main136    - '/tmp/'137    - test.c138    - '/private/tmp/test.o'139    - _main140    - ''141...142