1# REQUIRES: asserts 2# RUN: llvm-mc -triple=riscv64 -filetype=obj -o %t %s 3# RUN: llvm-jitlink -debug-only=jitlink -num-threads=0 -noexec %t 2>&1 \ 4# RUN: | FileCheck %s 5# 6# Because of the exist of cfi directive, sections like eh_frame section will be emitted 7# in llvm's object code emission phase. Anonymous symbols will also be emitted to indicate 8# the section start and section end. So that by relocating these symbol, the section length 9# 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 .text 14 .globl main 15 .p2align 2 16 .type main,@function 17main: 18 .cfi_startproc 19 ret 20 .Lfunc_end0: 21 .size main, .Lfunc_end0-main 22 .cfi_endproc 23