brintos

brintos / llvm-project-archived public Read only

0
0
Text · 631 B · a08d4a7 Raw
27 lines · plain
1// RUN: llvm-mc -triple riscv64 -filetype=obj -o %t.o %s2// RUN: ld.lld -q -o %t %t.o3// RUN: llvm-bolt -o %t.bolt %t4// RUN: llvm-readelf -s %t.bolt | FileCheck --check-prefix=SYM %s5// RUN: llvm-readelf -x .data %t.bolt | FileCheck --check-prefix=DATA %s6 7// SYM: {{0+}}400000 {{.*}} _start{{$}}8 9// DATA: Hex dump of section '.data':10// DATA-NEXT: 00004000 0000000011 12  .data13  .globl d14  .p2align 315d:16  .dword _start17 18  .text19  .globl _start20  .p2align 121_start:22  ret23  ## Dummy relocation to force relocation mode; without it, _start will not be24  ## moved to a new address.25  .reloc 0, R_RISCV_NONE26  .size _start, .-_start27