brintos

brintos / llvm-project-archived public Read only

0
0
Text · 518 B · 111cbbb Raw
25 lines · plain
1## Verify that llvm-bolt correctly prints relocation types.2 3# REQUIRES: system-linux4 5# RUN: %clang %cflags -nostartfiles %s -o %t.exe -Wl,-q,--no-relax6# RUN: llvm-bolt %t.exe --print-cfg --print-relocations -o %t.bolt \7# RUN:   | FileCheck %s8 9  .section .text10  .align 411  .globl _start12  .type _start, %function13_start:14 15  adrp x0, _start16# CHECK: adrp17# CHECK-SAME: R_AARCH64_ADR_PREL_PG_HI2118 19  add x0, x0, :lo12:_start20# CHECK-NEXT: add21# CHECK-SAME: R_AARCH64_ADD_ABS_LO12_NC22 23  ret24  .size _start, .-_start25