aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elf/link.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/link.h b/elf/link.h
index 88b1ad7fd0..c0f255ae18 100644
--- a/elf/link.h
+++ b/elf/link.h
@@ -34,6 +34,12 @@
#include <bits/elfclass.h> /* Defines __ELF_NATIVE_CLASS. */
#include <bits/link.h>
+#ifdef __CHERI_PURE_CAPABILITY__
+typedef uintptr_t elfptr_t;
+#else
+typedef ElfW(Addr) elfptr_t;
+#endif
+
/* The legacy rendezvous structure used by the run-time dynamic linker to
communicate details of shared object loading to the debugger. */