Skip to content

Commit 170103b

Browse files
authored
Merge pull request #428 from riscv-non-isa/prog-prop
Add program property
2 parents 17038f1 + 7c0334a commit 170103b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

riscv-elf.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,13 +1077,16 @@ The defined processor-specific section types are listed in <<rv-section-type>>.
10771077

10781078
| .riscv.attributes | SHT_RISCV_ATTRIBUTES | none
10791079
| .riscv.jvt | SHT_PROGBITS | SHF_ALLOC + SHF_EXECINSTR
1080+
| .note.gnu.property | SHT_NOTE | SHF_ALLOC
10801081
|===
10811082

10821083
+++.riscv.attributes+++ names a section that contains RISC-V ELF attributes.
10831084

10841085
+++.riscv.jvt+++ is a linker-created section to store table jump
10851086
target addresses. The minimum alignment of this section is 64 bytes.
10861087

1088+
+++.note.gnu.property+++ names a section that contains a program property note.
1089+
10871090
=== Program Header Table
10881091

10891092
The defined processor-specific segment types are listed in <<rv-seg-type>>.
@@ -1350,6 +1353,14 @@ value. After the merge, the resulting value will be the non-zero one.
13501353

13511354
--
13521355

1356+
=== Program Property
1357+
1358+
Program properties are used to record information about an object file or binary
1359+
that a linker or runtime loader needs to check for compatibility.
1360+
1361+
The linker should ignore and discard unknown bits in program properties, and
1362+
issue warnings or errors.
1363+
13531364
=== Mapping Symbol
13541365

13551366
The section can have a mixture of code and data or code with different ISAs.

0 commit comments

Comments
 (0)