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 6 7// SYM: {{0+}}400000 {{.*}} _start{{$}} 8 9// DATA: Hex dump of section '.data': 10// DATA-NEXT: 00004000 00000000 11 12 .data 13 .globl d 14 .p2align 3 15d: 16 .dword _start 17 18 .text 19 .globl _start 20 .p2align 1 21_start: 22 ret 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 27