1 # REQUIRES: system-linux
3 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o
4 # RUN: llvm-strip --strip-unneeded %t.o
5 # RUN: ld.lld %t.o -o %t.exe -q --unresolved-symbols=ignore-all
6 # RUN: llvm-readelf -Wr %t.exe | FileCheck %s
7 # RUN: llvm-bolt --strict %t.exe --relocs -o %t.null
11 .type _start,@function
16 # For relocations against .text
18 .size _start, .-_start
33 ## Check that BOLT succeeds in strict mode in the presence of unaccounted
34 ## data-to-data PC-relative relocations.
36 # CHECK: Relocation section '.rela.rodata'
38 # CHECK-NEXT: R_X86_64_PC64
39 # CHECK-NEXT: R_X86_64_PC32
40 # CHECK-NEXT: R_X86_64_PC16