bolt/deps/llvm-18.1.8/llvm/test/tools/obj2yaml/ELF/riscv-sym-other.yaml

23 lines
487 B
YAML
Raw Normal View History

2025-02-14 19:21:04 +01:00
## Check RISC-V st_other extension support.
# RUN: yaml2obj %s -o %t
# RUN: obj2yaml %t | FileCheck %s
# CHECK: Symbols:
# CHECK: - Name: foo1
# CHECK: Other: [ STO_RISCV_VARIANT_CC ]
# CHECK: - Name: foo2
# CHECK: Other: [ STO_RISCV_VARIANT_CC, 64 ]
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_RISCV
Symbols:
- Name: foo1
Other: [ STO_RISCV_VARIANT_CC ]
- Name: foo2
Other: [ STO_RISCV_VARIANT_CC, 0x40 ]