Skip to content

Commit 8bf11a7

Browse files
pratlucasstuij
authored andcommitted
[aaelf64] Fix typos in TLS descriptor relocations' comments
The comments for the `R_<CLS>_TLSDESC_LD_PREL19` and `R_<CLS>_TLSDESC_ADR_PREL21` TLS relocations incorrectly mentioned a range check that stated `-220 <= X < 2^20` instead of the expected `-2^20 <= x < 2^20`. This patch fixes it.
1 parent f8b11b5 commit 8bf11a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aaelf64/aaelf64.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,9 +1455,9 @@ Thread-local storage descriptors
14551455
+------------+------------+---------------------------------+----------------------------------+----------------------------------------------------------------------------------------------+
14561456
| ELF64 Code | ELF32 Code | Name | Operation | Comment |
14571457
+============+============+=================================+==================================+==============================================================================================+
1458-
| 560 | 122 | R\_<CLS>\_TLSDESC\_ LD\_PREL19 | G(GTLSDESC(S+A)) - P | Set a load-literal immediate to bits [20:2]; check -220 <= X < 2\ :sup:`20`; check X & 3 = 0.|
1458+
| 560 | 122 | R\_<CLS>\_TLSDESC\_ LD\_PREL19 | G(GTLSDESC(S+A)) - P | Set a load-literal immediate to bits [20:2]; check -2\ :sup:`20` <= X < 2\ :sup:`20`; check X & 3 = 0.|
14591459
+------------+------------+---------------------------------+----------------------------------+----------------------------------------------------------------------------------------------+
1460-
| 561 | 123 | R\_<CLS>\_TLSDESC\_ ADR\_PREL21 | G(GTLSDESC(S+A) - P | Set an ADR immediate field to bits [20:0]; check -220 <= X < 2\ :sup:`20`. |
1460+
| 561 | 123 | R\_<CLS>\_TLSDESC\_ ADR\_PREL21 | G(GTLSDESC(S+A) - P | Set an ADR immediate field to bits [20:0]; check -2\ :sup:`20` <= X < 2\ :sup:`20`. |
14611461
+------------+------------+---------------------------------+----------------------------------+----------------------------------------------------------------------------------------------+
14621462
| 562 | 124 | R\_<CLS>\_TLSDESC\_ ADR\_PAGE21 | Page(G(GTLSDESC(S+A))) - Page(P) | Set an ADRP immediate field to bits [32:12] of X; check -2\ :sup:`32` <= X < 2\ :sup:`32`. |
14631463
+------------+------------+---------------------------------+----------------------------------+----------------------------------------------------------------------------------------------+

0 commit comments

Comments
 (0)