brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · e978a73 Raw
58 lines · yaml
1## Test that macho2yaml dumps the __debug_foo section (unrecognized debug section)2## as a raw content section.3 4# RUN: yaml2obj %s | obj2yaml | FileCheck %s --check-prefix=UNRECOGNIZED5 6#      UNRECOGNIZED: Sections:7# UNRECOGNIZED-NEXT:   - sectname:        __debug_foo8# UNRECOGNIZED-NEXT:     segname:         __DWARF9# UNRECOGNIZED-NEXT:     addr:            0x010# UNRECOGNIZED-NEXT:     size:            511# UNRECOGNIZED-NEXT:     offset:          0x21012# UNRECOGNIZED-NEXT:     align:           013# UNRECOGNIZED-NEXT:     reloff:          0x014# UNRECOGNIZED-NEXT:     nreloc:          015# UNRECOGNIZED-NEXT:     flags:           0x016# UNRECOGNIZED-NEXT:     reserved1:       0x017# UNRECOGNIZED-NEXT:     reserved2:       0x018# UNRECOGNIZED-NEXT:     reserved3:       0x019# UNRECOGNIZED-NEXT:     content:         '0123456789'20# UNRECOGNIZED-NEXT: ...21 22--- !mach-o23FileHeader:24  magic:      0xFEEDFACF25  cputype:    0x0100000726  cpusubtype: 0x0000000327  filetype:   0x0000000A28  ncmds:      129  sizeofcmds: 23230  flags:      0x0000000031  reserved:   0x0000000032LoadCommands:33  - cmd:      LC_SEGMENT_6434    cmdsize:  15235    segname:  __DWARF36    vmaddr:   0x0037    vmsize:   0x0038    fileoff:  0x0039    filesize: 0x0040    maxprot:  041    initprot: 042    nsects:   143    flags:    044    Sections:45      - sectname:  __debug_foo46        segname:   __DWARF47        addr:      0x0048        size:      549        offset:    52850        align:     051        reloff:    0x0000000052        nreloc:    053        flags:     0x0000000054        reserved1: 0x0000000055        reserved2: 0x0000000056        reserved3: 0x0000000057        content:   '0123456789'58