30 lines · plain
1# REQUIRES: riscv2## The merged SHT_RISCV_ATTRIBUTES is placed at the first input3## SHT_RISCV_ATTRIBUTES.4 5# RUN: llvm-mc -filetype=obj -triple=riscv64 %s -o %t.o6# RUN: ld.lld -e 0 %t.o %t.o -o %t7# RUN: llvm-readelf -S %t | FileCheck %s8 9# CHECK: Name Type Address Off Size ES Flg Lk Inf Al10# CHECK: .riscv.a PROGBITS 0000000000000000 [[#%x,]] 000002 00 0 0 111# CHECK-NEXT: .riscv.attributes RISCV_ATTRIBUTES 0000000000000000 [[#%x,]] 00001a 00 0 0 112# CHECK-NEXT: .riscv.b PROGBITS 0000000000000000 [[#%x,]] 000002 00 0 0 113 14.section .riscv.a,""15.byte 016 17.section .riscv.attributes,"",@0x7000000318.byte 0x4119.long .Lend-.riscv.attributes-120.asciz "riscv" # vendor21.Lbegin:22.byte 1 # Tag_File23.long .Lend-.Lbegin24.byte 5 # Tag_RISCV_arch25.asciz "rv64i2p0"26.Lend:27 28.section .riscv.b,""29.byte 030