From: Szabolcs Nagy Date: Thu, 7 Apr 2022 12:18:48 +0000 (+0100) Subject: cheri: elf: elfptr_t l_map_start in link_map struct X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15458dd00f538c02becb3ec01192adf0e4a58a9d;p=thirdparty%2Fglibc.git cheri: elf: elfptr_t l_map_start in link_map struct 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. --- diff --git a/include/link.h b/include/link.h index 0ac82d7c774..7632ae33d36 100644 --- a/include/link.h +++ b/include/link.h @@ -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;