1// This test checks that multiple data objects in text of which only first is marked get disassembled properly 2 3// RUN: yaml2obj %S/Inputs/unmarked-data.yaml -o %t.exe 4// RUN: llvm-bolt %t.exe -o %t.bolt --lite=0 --use-old-text=0 2>&1 | FileCheck %s 5// CHECK-NOT: BOLT-WARNING 6// RUN: llvm-objdump -j .text -d --disassemble-symbols=first,second %t.bolt | FileCheck %s -check-prefix=CHECK-SYMBOL 7// 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 dissassembled 13 .text 14 15first: 16 .xword val 17 .size first, .-first 18 19second: 20 .xword val 21 .size second, .-second 22 23 .globl dummy 24 .type dummy, %function 25dummy: // dummy function to force relocations 26 ret 27 28 .globl _start 29 .type _start, %function 30_start: 31 bl dummy 32 mov x0, #0 33 mov w8, #93 34 svc #0 35