aboutsummaryrefslogtreecommitdiff
path: root/include/link.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/link.h')
-rw-r--r--include/link.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/link.h b/include/link.h
index 6dd8e71..e1dca89 100644
--- a/include/link.h
+++ b/include/link.h
@@ -257,6 +257,18 @@ struct link_map
ElfW(Addr) l_map_end;
/* End of the executable part of the mapping. */
ElfW(Addr) l_text_end;
+#ifdef __CHERI_PURE_CAPABILITY__
+ /* Writable part of the mapping (may have non-writable holes). */
+ elfptr_t l_rw_start;
+# define DL_MAX_RW_COUNT 4
+ /* Writable ranges: objects are writable in these ranges. */
+ int l_rw_count;
+ struct rw_range
+ {
+ ElfW(Addr) start;
+ ElfW(Addr) end;
+ } l_rw_range[DL_MAX_RW_COUNT];
+#endif
/* Default array for 'l_scope'. */
struct r_scope_elem *l_scope_mem[4];