1 // RUN
: %clang
%cflags
-Wl
,--defsym
='__global_pointer$'=0x2800 -o
%t %s
2 // RUN
: llvm-bolt
--print-cfg
--print-only
=_start
-o
/dev
/null
%t \
14 // CHECK
: Binary Function
"_start" after building cfg
{
20 // CHECK
: auipc gp
, %pcrel_hi
(__global_pointer$
) # Label: .Ltmp0
21 // CHECK-NEXT
: addi gp
, gp
, %pcrel_lo
(.Ltmp0)
22 auipc gp
, %pcrel_hi
(__global_pointer$
)
23 addi gp
, gp
, %pcrel_lo
(1b)
25 .size _start, .-_start