1 // This test checks that multiple data objects in text of which only first is marked get disassembled properly
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>:
10 // YAML is based in the following assembly:
12 .equ val, 0x070b0f03 // we use constant that is not a valid instruction so that it can't be silently dissassembled
21 .size second, .-second
24 .type dummy, %function
25 dummy: // dummy function to force relocations
29 .type _start, %function