Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add program property #428

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading