1 /// NOTE
: assign section addresses explicitly to make the symbol difference
2 /// calculation below less fragile.
3 // RUN
: %clang
%cflags
-Wl
,--section-start
=.text=0x1000,--section-start=.data=0x2000 -o %t %s
4 // RUN
: llvm-bolt
-o
%t.bolt
%t
5 // RUN
: llvm-readelf
-x
.data %t.bolt | FileCheck %s
13 auipc a1
, %pcrel_hi
(.LJTI0_0)
14 addi a1
, a1
, %pcrel_lo
(.LBB0_0)
20 .size _start, .-_start
24 /// .LBB0_1 = 0x40000e
25 // CHECK
: Hex dump of section
'.data':
26 // CHECK-NEXT
: 0x00002000 0ee03f00
28 .word .LBB0_1 - .LJTI0_0