brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · cee8435 Raw
44 lines · yaml
1## Check yaml2obj is able to dump relocations2## that have no or a zero symbol associated.3 4# RUN: yaml2obj %s -o %t.o5# RUN: obj2yaml %t.o | FileCheck %s6 7# CHECK:      --- !ELF8# CHECK-NEXT: FileHeader:9# CHECK-NEXT:   Class:   ELFCLASS6410# CHECK-NEXT:   Data:    ELFDATA2LSB11# CHECK-NEXT:   Type:    ET_REL12# CHECK-NEXT:   Machine: EM_X86_6413# CHECK-NEXT: Sections:14# CHECK-NEXT:   - Name:    .text15# CHECK-NEXT:     Type:    SHT_PROGBITS16# CHECK-NEXT:     Flags:   [ SHF_ALLOC, SHF_EXECINSTR ]17# CHECK-NEXT:   - Name:    .rela.text18# CHECK-NEXT:     Type:    SHT_RELA19# CHECK-NEXT:     Info:    .text20# CHECK-NEXT:     Relocations:21# CHECK-NEXT:       - Type:   R_X86_64_NONE22# CHECK-NEXT:       - Offset: 0x423# CHECK-NEXT:         Type:   R_X86_64_NONE24# CHECK-NEXT: ...25 26--- !ELF27FileHeader:28  Class:   ELFCLASS6429  Data:    ELFDATA2LSB30  Type:    ET_REL31  Machine: EM_X86_6432Sections:33  - Name:  .text34    Type:  SHT_PROGBITS35    Flags: [ SHF_ALLOC, SHF_EXECINSTR ]36  - Name:  .rela.text37    Type:  SHT_RELA38    Info:  .text39    Relocations:40      - Type:   R_X86_64_NONE41      - Offset: 0x442        Type:   R_X86_64_NONE43        Symbol: 044