Skip to content

Commit

Permalink
Merge pull request #428 from riscv-non-isa/prog-prop
Browse files Browse the repository at this point in the history
Add program property
  • Loading branch information
kito-cheng authored Aug 2, 2024
2 parents 17038f1 + 7c0334a commit 170103b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions riscv-elf.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1077,13 +1077,16 @@ The defined processor-specific section types are listed in <<rv-section-type>>.

| .riscv.attributes | SHT_RISCV_ATTRIBUTES | none
| .riscv.jvt | SHT_PROGBITS | SHF_ALLOC + SHF_EXECINSTR
| .note.gnu.property | SHT_NOTE | SHF_ALLOC
|===

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

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

+++.note.gnu.property+++ names a section that contains a program property note.

=== Program Header Table

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

--

=== Program Property

Program properties are used to record information about an object file or binary
that a linker or runtime loader needs to check for compatibility.

The linker should ignore and discard unknown bits in program properties, and
issue warnings or errors.

=== Mapping Symbol

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

0 comments on commit 170103b

Please sign in to comment.