mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 03:46:46 +00:00

NFC processing time script identifies tests by output filename. When `/dev/null` is used as output filename, we're unable to tell the source test, and the reports are unhelpful. Replace `/dev/null/` with `%t.null` which resolves the issue.
41 lines
849 B
ArmAsm
41 lines
849 B
ArmAsm
# REQUIRES: system-linux
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o
|
|
# RUN: llvm-strip --strip-unneeded %t.o
|
|
# RUN: ld.lld %t.o -o %t.exe -q --unresolved-symbols=ignore-all
|
|
# RUN: llvm-readelf -Wr %t.exe | FileCheck %s
|
|
# RUN: llvm-bolt --strict %t.exe --relocs -o %t.null
|
|
|
|
.text
|
|
.globl _start
|
|
.type _start,@function
|
|
_start:
|
|
.cfi_startproc
|
|
retq
|
|
|
|
# For relocations against .text
|
|
call exit
|
|
.size _start, .-_start
|
|
.cfi_endproc
|
|
|
|
.data
|
|
var:
|
|
.quad 0
|
|
|
|
.rodata
|
|
var_offset64:
|
|
.quad var-.
|
|
var_offset32:
|
|
.long var-.
|
|
var_offset16:
|
|
.word var-.
|
|
|
|
## Check that BOLT succeeds in strict mode in the presence of unaccounted
|
|
## data-to-data PC-relative relocations.
|
|
|
|
# CHECK: Relocation section '.rela.rodata'
|
|
# CHECK-NEXT: Offset
|
|
# CHECK-NEXT: R_X86_64_PC64
|
|
# CHECK-NEXT: R_X86_64_PC32
|
|
# CHECK-NEXT: R_X86_64_PC16
|