brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · 4f6eb8f Raw
99 lines · plain
1## SystemZDisassembler sets the branch target information during getInstruction instead of printInst.2## Test we display the branch targets correctly in the presence of --adjust-vma.3# RUN: rm -rf %t && split-file %s %t && cd %t4# RUN: yaml2obj a.yaml -o out5# RUN: llvm-objdump -td --adjust-vma=0x200000 --no-show-raw-insn out | FileCheck %s --match-full-lines6 7# CHECK:      SYMBOL TABLE:8# CHECK-NEXT: 0000000001200104 l       .text  0000000000000000 f19# CHECK-NEXT: 0000000001200106 l       .text  0000000000000000 f210# CHECK-NEXT: 0000000000000800 l       *ABS*  0000000000000000 abs11 12# CHECK:      00000000012000f8 <_start>:13# CHECK-NEXT:  12000f8: brasl   %r14, 0x120010414# CHECK-NEXT:  12000fe: brasl   %r14, 0x120010615# CHECK-EMPTY:16# CHECK-NEXT: 0000000001200104 <f1>:17# CHECK-NEXT:  1200104: br      %r1418# CHECK-EMPTY:19# CHECK-NEXT: 0000000001200106 <f2>:20# CHECK-NEXT:  1200106: br      %r1421 22#--- a.s23.globl _start24_start:25  brasl %r14, f126  brasl %r14, f227 28f1:29  br %r1430f2:31  br %r1432 33abs = 0x80034#--- gen35LLD_IN_TEST=1 clang --target=s390x-linux -no-pie -nostdlib -Wl,--no-rosegment,-zseparate-code,-znorelro,-znognustack -fuse-ld=lld a.s -o a36obj2yaml a37#--- a.yaml38--- !ELF39FileHeader:40  Class:           ELFCLASS6441  Data:            ELFDATA2MSB42  Type:            ET_EXEC43  Machine:         EM_S39044  Entry:           0x10000F845ProgramHeaders:46  - Type:            PT_PHDR47    Flags:           [ PF_R ]48    VAddr:           0x100004049    Align:           0x850    Offset:          0x4051  - Type:            PT_INTERP52    Flags:           [ PF_R ]53    FirstSec:        .interp54    LastSec:         .interp55    VAddr:           0x10000E856    Offset:          0xE857  - Type:            PT_LOAD58    Flags:           [ PF_X, PF_R ]59    FirstSec:        .interp60    LastSec:         .text61    VAddr:           0x100000062    Align:           0x100063    Offset:          0x064Sections:65  - Name:            .interp66    Type:            SHT_PROGBITS67    Flags:           [ SHF_ALLOC ]68    Address:         0x10000E869    AddressAlign:    0x170    Content:         2F6C69622F6C6436342E736F2E310071  - Name:            .text72    Type:            SHT_PROGBITS73    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]74    Address:         0x10000F875    AddressAlign:    0x476    Content:         C0E500000006C0E50000000407FE07FE77  - Name:            .comment78    Type:            SHT_PROGBITS79    Flags:           [ SHF_MERGE, SHF_STRINGS ]80    AddressAlign:    0x181    EntSize:         0x182    Offset:          0x100083    Content:         4C696E6B65723A204C4C442032312E302E300084Symbols:85  - Name:            f186    Section:         .text87    Value:           0x100010488  - Name:            f289    Section:         .text90    Value:           0x100010691  - Name:            abs92    Index:           SHN_ABS93    Value:           0x80094  - Name:            _start95    Section:         .text96    Binding:         STB_GLOBAL97    Value:           0x10000F898...99