# RUN: yaml2obj %s -DBITS=32 -DPR_PADDING= -o %t1 # RUN: llvm-readelf --notes %t1 | FileCheck %s --check-prefix=GNU # RUN: llvm-readobj --notes %t1 | FileCheck %s --check-prefix=LLVM # RUN: yaml2obj %s -DBITS=64 -DPR_PADDING=00000000 -o %t2 # RUN: llvm-readelf --notes %t2 | FileCheck %s --check-prefix=GNU # RUN: llvm-readobj --notes %t2 | FileCheck %s --check-prefix=LLVM # GNU: Displaying notes found in: .note.gnu.property # GNU-NEXT: Owner Data size Description # GNU-NEXT: GNU 0x{{([0-9a-z]{8})}} NT_GNU_PROPERTY_TYPE_0 (property note) # GNU-NEXT: Properties: RISC-V feature: ZICFILP-unlabeled, ZICFISS, ZICFILP-func-sig # LLVM: NoteSections [ # LLVM-NEXT: NoteSection { # LLVM-NEXT: Name: .note.gnu.property # LLVM-NEXT: Offset: # LLVM-NEXT: Size: # LLVM-NEXT: Notes [ # LLVM-NEXT: { # LLVM-NEXT: Owner: GNU # LLVM-NEXT: Data size: # LLVM-NEXT: Type: NT_GNU_PROPERTY_TYPE_0 (property note) # LLVM-NEXT: Property [ # LLVM-NEXT: RISC-V feature: ZICFILP-unlabeled, ZICFISS, ZICFILP-func-sig # LLVM-NEXT: ] # LLVM-NEXT: } # LLVM-NEXT: ] # LLVM-NEXT: } # LLVM-NEXT: ] --- !ELF FileHeader: Class: ELFCLASS[[BITS]] Data: ELFDATA2LSB Type: ET_REL Machine: EM_RISCV Sections: - Name: .note.gnu.property Type: SHT_NOTE Flags: [ SHF_ALLOC ] Notes: - Name: 'GNU' Desc: '000000c00400000007000000[[PR_PADDING]]' Type: 5 # NT_GNU_PROPERTY_TYPE_0