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