1 // RUN
: llvm-mc
-triple riscv64
-filetype
=obj
-o
%t.o
%s
2 // RUN
: ld.lld
-q
-o
%t %t.o
3 // RUN
: llvm-bolt
-o
%t.bolt
%t
4 // RUN
: llvm-readelf
-s
%t.bolt | FileCheck
--check-prefix
=SYM
%s
5 // RUN
: llvm-readelf
-x
.data %t.bolt | FileCheck --check-prefix=DATA %s
7 // SYM
: {{0+}}400000 {{.*}} _start{{$}}
9 // DATA
: Hex dump of section
'.data':
10 // DATA-NEXT
: 00004000 00000000
23 ## Dummy relocation to force relocation mode; without it, _start will not be
24 ## moved to a new address.
25 .reloc 0, R_RISCV_NONE
26 .size _start, .-_start