Skip to content

[aaelf64] Define GOT-Relative data relocation #223

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

Merged
merged 1 commit into from
Oct 10, 2023
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
19 changes: 11 additions & 8 deletions aaelf64/aaelf64.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1240,14 +1240,17 @@ The following tables record single instruction relocations and relocations that

.. table:: GOT-relative data relocations

+------------+------------+--------------------+------------+-------------------------------------------------------------------------------------------------------------------------+
| ELF64 Code | ELF32 Code | Name | Operation | Comment |
+============+============+====================+============+=========================================================================================================================+
| 307 | \- | R\_<CLS>\_GOTREL64 | S+A-GOT | Write bits [63:0] of X at byte-aligned place P. This represents a 64-bit offset relative to the GOT. |
+------------+------------+--------------------+------------+-------------------------------------------------------------------------------------------------------------------------+
| 308 | \- | R\_<CLS>\_GOTREL32 | S+A-GOT | Write bits [31:0] of X at byte-aligned place P. This represents a 32-bit offset relative to GOT, treated as signed; |
| | | | | Check that -2\ :sup:`31` <= X < 2\ :sup:`31`. |
+------------+------------+--------------------+------------+-------------------------------------------------------------------------------------------------------------------------+
+------------+------------+----------------------+------------------+-------------------------------------------------------------------------------------------------------------------------+
| ELF64 Code | ELF32 Code | Name | Operation | Comment |
+============+============+======================+==================+=========================================================================================================================+
| 307 | \- | R\_<CLS>\_GOTREL64 | S+A-GOT | Write bits [63:0] of X at byte-aligned place P. This represents a 64-bit offset relative to the GOT. |
+------------+------------+----------------------+------------------+-------------------------------------------------------------------------------------------------------------------------+
| 308 | \- | R\_<CLS>\_GOTREL32 | S+A-GOT | Write bits [31:0] of X at byte-aligned place P. This represents a 32-bit offset relative to GOT, treated as signed; |
| | | | | Check that -2\ :sup:`31` <= X < 2\ :sup:`31`. |
+------------+------------+----------------------+------------------+-------------------------------------------------------------------------------------------------------------------------+
| 315 | \- | R\_<CLS>\_GOTPCREL32 | G(GDAT(S+A))- P | Write bits [31:0] of X at byte-aligned place P. This represents a 32-bit offset relative to GOT entry for an address, |
| | | | | treated as signed; Check that -2\ :sup:`31` <= X < 2\ :sup:`31`. |
+------------+------------+----------------------+------------------+-------------------------------------------------------------------------------------------------------------------------+

.. _GOT-relative instruction relocations:

Expand Down