about summary refs log tree commit diff
path: root/include/link.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-04-20 09:54:31 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-27 14:46:53 +0100
commit50bbdb94d32a75a577f393bf58cbc14f67d2fbea (patch)
treedf479e37f864b8c5cab69b43f83f20f37293fc6c /include/link.h
parent81d3513572a7f8ea91ee49e0c9ea4ba661567119 (diff)
downloadglibc-50bbdb94d32a75a577f393bf58cbc14f67d2fbea.tar.gz
glibc-50bbdb94d32a75a577f393bf58cbc14f67d2fbea.tar.xz
glibc-50bbdb94d32a75a577f393bf58cbc14f67d2fbea.zip
cheri: elf: change l_entry to be elfptr_t
It is simpler and more consistent to make l_entry a capability
throughout instead of leaving it as an address and converting before
use:

The AT_ENTRY auxv entry is specified to be a capability and a number
if internal l_entry usage is simpler if it is elfptr_t.

Functions returning a pointer to the user entry are also changed to
use elfptr_t.
Diffstat (limited to 'include/link.h')
-rw-r--r--include/link.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/link.h b/include/link.h
index 79c8a57690..a3548a7a93 100644
--- a/include/link.h
+++ b/include/link.h
@@ -133,7 +133,7 @@ struct link_map
     ElfW(Dyn) *l_info[DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM
 		      + DT_EXTRANUM + DT_VALNUM + DT_ADDRNUM];
     const ElfW(Phdr) *l_phdr;	/* Pointer to program header table in core.  */
-    ElfW(Addr) l_entry;		/* Entry point location.  */
+    elfptr_t l_entry;		/* Entry point location.  */
     ElfW(Half) l_phnum;		/* Number of program header entries.  */
     ElfW(Half) l_ldnum;		/* Number of dynamic segment entries.  */