about summary refs log tree commit diff
path: root/elf/do-rel.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-20 17:12:36 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-11-22 14:31:25 +0000
commit046ce0eb112e596fbb5437e809d2f575388e61c1 (patch)
tree1f94044da39eabe53b8da3a1ef3467ef3e9fd9ef /elf/do-rel.h
parent82f650eec80df339f1a8144039623a575f756161 (diff)
downloadglibc-046ce0eb112e596fbb5437e809d2f575388e61c1.tar.gz
glibc-046ce0eb112e596fbb5437e809d2f575388e61c1.tar.xz
glibc-046ce0eb112e596fbb5437e809d2f575388e61c1.zip
cheri: elf: Prepare support for dynamic relocation processing
Type of relocation addresses must be changed from ElfW(Addr) to
elfptr_t to cover both traditional and CHERI ABIs.

And relative relocation processing must have access to the link_map
to derive pointers from the right per module capability.
Diffstat (limited to 'elf/do-rel.h')
-rw-r--r--elf/do-rel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/do-rel.h b/elf/do-rel.h
index 694b3a6bd7..219fad2318 100644
--- a/elf/do-rel.h
+++ b/elf/do-rel.h
@@ -41,7 +41,7 @@
 
 static inline void __attribute__ ((always_inline))
 elf_dynamic_do_Rel (struct link_map *map, struct r_scope_elem *scope[],
-		    ElfW(Addr) reladdr, ElfW(Addr) relsize,
+		    elfptr_t reladdr, ElfW(Addr) relsize,
 		    __typeof (((ElfW(Dyn) *) 0)->d_un.d_val) nrelative,
 		    int lazy, int skip_ifunc)
 {