brintos

brintos / llvm-project-archived public Read only

0
0
Text · 566 B · 591c9ab Raw
27 lines · plain
1## Check that llvm-bolt is able to recover a missing code marker.2 3# RUN: %clang %cflags %s -o %t.exe -nostdlib -fuse-ld=lld -Wl,-q4# RUN: llvm-bolt %t.exe -o %t.bolt 2>&1 | FileCheck %s5 6# CHECK: BOLT-WARNING: function symbol foo lacks code marker7 8.text9.balign 410 11.word 012 13## Function foo starts immediately after a data object and does not have14## a matching "$x" symbol to indicate the start of code.15.global foo16.type foo, %function17foo:18  .word 0xd65f03c019.size foo, .-foo20 21.global _start22.type _start, %function23_start:24  bl foo25  ret26.size _start, .-_start27