about summary refs log tree commit diff
path: root/include
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-11-22 14:31:25 +0000
commit0946809134764e4dc5c69f3fe464d9b3580ee83b (patch)
tree936bf6fbfd063c5ef6031091eb50aeb904cd129e /include
parentb2b6a773fecd30e2404157c04f4c25ce025297b3 (diff)
downloadglibc-0946809134764e4dc5c69f3fe464d9b3580ee83b.tar.gz
glibc-0946809134764e4dc5c69f3fe464d9b3580ee83b.tar.xz
glibc-0946809134764e4dc5c69f3fe464d9b3580ee83b.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')
-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.  */