12 lines · plain
1// This test checks that the binaries produces with GNU ld TLS le relaxation are2// properly processed by BOLT. GNU ld currently emits two non-standard3// relocations (R_RISCV_TPREL_I and R_RISCV_TPREL_S) in this case.4 5// RUN: yaml2obj %p/Inputs/tls-le-gnu-ld.yaml &> %t.exe6// RUN: llvm-bolt %t.exe -o %t.bolt.exe --print-cfg --print-only=_start \7// RUN: | FileCheck %s8 9// CHECK: Binary Function "_start" after building cfg {10// CHECK: lw t0, 0x0(tp)11// CHECK-NEXT: sw t0, 0x0(tp)12