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

[Morello] Insufficient R_MORELLO_JUMP_SLOT documentation #69 #249

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
12 changes: 7 additions & 5 deletions aaelf64-morello/aaelf64-morello.rst
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,11 @@ Dynamic Morello relocations
address of a data symbol which must be resolved at load time when dynamic
linking.

``R_MORELLO_JUMP_SLOT`` instructs the dynamic loader to create a 16-byte capability
in the GOT entry identified by r_offset. The capability holds the address of a
function symbol which must be resolved at load time.
``R_MORELLO_JUMP_SLOT`` instructs the dynamic loader to derive a 16-byte
capability in the GOT entry identified by ``r_offset``. Information needed to
derive the capability is encoded in the fragment identified by ``r_offset``.
The address and permissions must be written to the fragment. See `Dynamic
linking with Morello`_ for details.

``R_MORELLO_RELATIVE`` represents an optimization of ``R_MORELLO_GLOB_DAT``. It can be
used when the symbol resolves to the current shared object or executable. ``S``
Expand Down Expand Up @@ -834,8 +836,8 @@ Dynamic linking with Morello

When dynamic linking, capability initialization is done by the dynamic linker as
a result of processing one of the dynamic relocations listed in
`Dynamic relocations table`_. For ``R_MORELLO_RELATIVE`` and
``R_MORELLO_IRELATIVE`` relocations, the static linker must write the following
`Dynamic relocations table`_. For ``R_MORELLO_JUMP_SLOT``, ``R_MORELLO_RELATIVE``
and ``R_MORELLO_IRELATIVE`` relocations, the static linker must write the following
information to the fragment identified by ``r_offset``.

+------------------+-----------------+----------------------+
Expand Down
Loading