]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
cheri: elf: elfptr_t l_map_start in link_map struct
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 7 Apr 2022 12:18:48 +0000 (13:18 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 27 Oct 2022 13:46:52 +0000 (14:46 +0100)
Use a capability for the load segment start that covers all load
segments so pointers can be derived from it.

It should have RX permission and a separate capability used for
writable pointers.

include/link.h

index 0ac82d7c774f0975bbc9eaae4792e881eab67aeb..7632ae33d36d11b6f6ac470ba1d87092bd303929 100644 (file)
@@ -252,7 +252,8 @@ struct link_map
 
     /* Start and finish of memory map for this object.  l_map_start
        need not be the same as l_addr.  */
-    ElfW(Addr) l_map_start, l_map_end;
+    elfptr_t l_map_start;
+    ElfW(Addr) l_map_end;
     /* End of the executable part of the mapping.  */
     ElfW(Addr) l_text_end;