Skip to content

[AAELF64] Add relocation metadata section - #419

Open
smithp35 wants to merge 3 commits into
ARM-software:mainfrom
smithp35:relocationmetadata
Open

[AAELF64] Add relocation metadata section#419
smithp35 wants to merge 3 commits into
ARM-software:mainfrom
smithp35:relocationmetadata

Conversation

@smithp35

Copy link
Copy Markdown
Contributor

The PAuthABI and MemtagABI have relocations that encode metadata in the place of the relocation. For some self-relocating systems this can cause a problem as the code running prior to or during relocation may need to access to the partial application of that relocation. For example accessing a global variable, required to be in the GOT because it can be tagged.

Introduce an optional relocation metadata section containing an array of metadata entries that have a one to one correspondence to the relocation entries in its linked dynamic relocation section.

Fixes: #399

The PAuthABIELF64 and MemtagABIELF64 documents add additional
ELF section types like SHT_AARCH64_AUTH_REL. Add these to the
table of reserved section types.

The build attributes section has now been defined by buildattr64
add a reference in the table.
The PAuthABI and MemtagABI have relocations that encode metadata
in the place of the relocation. For some self-relocating systems
this can cause a problem as the code running prior to or during
relocation may need to access to the partial application of that
relocation. For example accessing a global variable, required to
be in the GOT because it can be tagged.

Introduce an optional relocation metadata section containing an
array of metadata entries that have a one to one correspondence
to the relocation entries in its linked dynamic relocation
section.

Fixes: ARM-software#399
@smithp35 smithp35 added aaelf64 Issue affects ELF for the Arm Architecture pauthabielf64 memtagabi memtagabi64 labels Aug 17, 2026
@smithp35

Copy link
Copy Markdown
Contributor Author

Includes PR #418 . This is a write up of the relocation metadata section mentioned in #410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aaelf64 Issue affects ELF for the Arm Architecture memtagabi memtagabi64 pauthabielf64

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memtag ABI Extension to ELF violates idempotency requirement

1 participant