brintos

brintos / llvm-project-archived public Read only

0
0
Text · 918 B · ffc8c18 Raw
33 lines · yaml
1## If "Symbol" is not specified for a relocation, the symbol index is assumed to be 0.2 3# RUN: yaml2obj %s -o %t4# RUN: llvm-readobj -r %t | FileCheck %s5 6# CHECK:     Relocations [7# CHECK-NEXT:  Section (2) .rel.text {8# CHECK-NEXT:    0x1000 R_X86_64_RELATIVE -9# CHECK-NEXT:    0x1001 R_X86_64_PC32 -10# CHECK-NEXT:  }11# CHECK-NEXT:]12 13!ELF14FileHeader:15  Class:           ELFCLASS6416  Data:            ELFDATA2LSB17  Type:            ET_EXEC18  Machine:         EM_X86_6419Sections:20  - Name:            .text21    Type:            SHT_PROGBITS22    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]23    Content:         "00000000"24  - Name:            .rel.text25    Type:            SHT_REL26    Info:            .text27    Relocations:28      - Offset: 0x100029        Type:   R_X86_64_RELATIVE30      ## R_X86_64_PC32 should have a non-zero symbol index but we don't error.31      - Offset: 0x100132        Type:   R_X86_64_PC3233