Skip to content

Commit 92dc432

Browse files
committed
[sysvabi64] Remove GOT distance from table
As all code-models have the same restriction. Only use the note to describe the 2GiB limit.
1 parent 6217919 commit 92dc432

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

sysvabi64/sysvabi64.rst

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -701,32 +701,23 @@ along with the assumptions that the code model may make.
701701
.. table:: Code Models
702702

703703
+--------+----------------+----------------+------------------------+
704-
| Code | Max text | Max combined | Additional GOT |
704+
| Code | Max text | Max combined | Additional GOT size |
705705
| Model | segment size | span of text | restrictions |
706706
| | | and data | |
707707
| | | segments | |
708708
+========+================+================+========================+
709709
| tiny | 1 MiB | 1 Mib | none |
710710
| | | | |
711711
+--------+----------------+----------------+------------------------+
712-
| small | 2GiB | 4 GiB | max distance from text |
713-
| | | | to GOT < 2 GiB |
714-
| | | +------------------------+
715-
| | | | pic: got size < 32 KiB |
712+
| small | 2GiB | 4 GiB | pic: got size < 32 KiB |
716713
| | | +------------------------+
717714
| | | | PIC: none |
718715
+--------+----------------+----------------+------------------------+
719-
| medium | 2GiB | no restriction | max distance from text |
720-
| | | | to GOT < 2 GiB |
721-
| | | +------------------------+
722-
| | | | pic: got size < 32 KiB |
716+
| medium | 2GiB | no restriction | pic: got size < 32 KiB |
723717
| | | +------------------------+
724718
| | | | PIC: none |
725719
+--------+----------------+----------------+------------------------+
726-
| large | 2GiB | no restriction | max distance from text |
727-
| | | | to GOT < 4 GiB |
728-
| | | | |
729-
| | | | |
720+
| large | 2GiB | no restriction | none |
730721
+--------+----------------+----------------+------------------------+
731722

732723
.. note::
@@ -757,8 +748,8 @@ along with the assumptions that the code model may make.
757748
5. The text segment maximum size is limited to 2GiB by
758749
R_AARCH64_PLT32 relocations from ``.eh_frame`` sections.
759750

760-
6. The distance to the GOT in the small and medium code model is
761-
limited to 2GiB by the R_AARCH64_GOTPCREL32 relocations.
751+
6. The distance to the GOT from the text segment is limited to 2GiB
752+
by the R_AARCH64_GOTPCREL32 relocations.
762753

763754
7. While designing the code models it was estimated that only 2.6%
764755
of load modules (executables and dynamic shared objects) have a max

0 commit comments

Comments
 (0)