brintos

brintos / llvm-project-archived public Read only

0
0
Text · 973 B · af6de11 Raw
35 lines · plain
1// This test checks that multiple data objects in text of which only first is marked get disassembled properly2 3// RUN: yaml2obj %S/Inputs/unmarked-data.yaml -o %t.exe4// RUN: llvm-bolt %t.exe -o %t.bolt --lite=0 --use-old-text=0 2>&1 | FileCheck %s5// CHECK-NOT: BOLT-WARNING: unable to disassemble instruction at offset6// RUN: llvm-objdump -j .text -d --disassemble-symbols=first,second %t.bolt | FileCheck %s -check-prefix=CHECK-SYMBOL7// CHECK-SYMBOL: <first>:8// CHECK-SYMBOL: <second>:9 10// YAML is based in the following assembly:11 12  .equ val, 0x070b0f03  // we use constant that is not a valid instruction so that it can't be silently disassembled13  .text14 15first:16  .xword val17  .size first, .-first18 19second:20  .xword val21  .size second, .-second22 23  .globl dummy24  .type dummy, %function25dummy: // dummy function to force relocations26    ret27 28  .globl _start29  .type _start, %function30_start:31    bl      dummy32    mov     x0, #033    mov     w8, #9334    svc     #035