blob: f87ed762038c111f471743e91549cc07b6dd74ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# 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
|