brintos

brintos / llvm-project-archived public Read only

0
0
Text · 802 B · a1badfd Raw
23 lines · plain
1# REQUIRES: asserts2# RUN: llvm-mc -triple=riscv64 -filetype=obj -o %t %s3# RUN: llvm-jitlink -debug-only=jitlink -num-threads=0 -noexec %t 2>&1 \4# RUN:              | FileCheck %s5#6# Because of the exist of cfi directive, sections like eh_frame section will be emitted7# in llvm's object code emission phase. Anonymous symbols will also be emitted to indicate8# the section start and section end. So that by relocating these symbol, the section length9# can be calculated.10#11# CHECK: Creating defined graph symbol for ELF symbol ".L0 "12# CHECK: Creating defined graph symbol for ELF symbol "main"13        .text14        .globl main15        .p2align 216        .type main,@function17main:18        .cfi_startproc19        ret20        .Lfunc_end0:21        .size main, .Lfunc_end0-main22        .cfi_endproc23