Skip to content

Commit

Permalink
Fix up incorrect MEMTAG d_un types
Browse files Browse the repository at this point in the history
MEMTAG_STACK should be d_val (a bit to indicate that MTE stack is either on/off), and MEMTAG_GLOBALS should be d_ptr (a pointer offset to a section containing memtag globals descriptors).

Found by eugenis@ in https://r.android.com/2765590
  • Loading branch information
hctim authored Oct 9, 2023
1 parent 2a70c42 commit 9c6aa2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memtagabielf64/memtagabielf64.rst
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ MemtagABI adds the following processor-specific dynamic array tags:
+---------------------------------+------------+--------+-------------------+-------------------+
| ``DT_AARCH64_MEMTAG_HEAP`` | 0x7000000b | d\_val | Platform specific | Platform Specific |
+---------------------------------+------------+--------+-------------------+-------------------+
| ``DT_AARCH64_MEMTAG_STACK`` | 0x7000000c | d\_ptr | Platform specific | Platform Specific |
| ``DT_AARCH64_MEMTAG_STACK`` | 0x7000000c | d\_val | Platform specific | Platform Specific |
+---------------------------------+------------+--------+-------------------+-------------------+
| ``DT_AARCH64_MEMTAG_GLOBALS`` | 0x7000000d | d\_val | Platform specific | Platform Specific |
| ``DT_AARCH64_MEMTAG_GLOBALS`` | 0x7000000d | d\_ptr | Platform specific | Platform Specific |
+---------------------------------+------------+--------+-------------------+-------------------+
| ``DT_AARCH64_MEMTAG_GLOBALSSZ`` | 0x7000000f | d\_val | Platform specific | Platform Specific |
+---------------------------------+------------+--------+-------------------+-------------------+
Expand Down

0 comments on commit 9c6aa2e

Please sign in to comment.