about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-21 15:51:49 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-26 15:39:59 +0100
commit45b4ae2ffd243ce637fe82c912c0e863b9c660ab (patch)
treed9d78ccaa2834fb6b1d61a1f9bb46fdf975f82bd
parente8d0e61aa2392f852c02725eb9af9b2f4139d076 (diff)
downloadglibc-45b4ae2ffd243ce637fe82c912c0e863b9c660ab.tar.gz
glibc-45b4ae2ffd243ce637fe82c912c0e863b9c660ab.tar.xz
glibc-45b4ae2ffd243ce637fe82c912c0e863b9c660ab.zip
TODO: more l_addr cleanup
TODO: squash into

  commit f2f4f441fbda6080d0ff742f3bb535c09315ef98
  cheri: elf: Turn l_addr back to ElfW(Addr)
-rw-r--r--elf/dl-reloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index d0d9a51716..4656015ea2 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -355,7 +355,7 @@ _dl_protect_relro (struct link_map *l)
 {
   elfptr_t start = ALIGN_DOWN(dl_rx_ptr (l, l->l_relro_addr),
 				GLRO(dl_pagesize));
-  elfptr_t end = ALIGN_DOWN((l->l_addr
+  ElfW(Addr) end = ALIGN_DOWN((l->l_addr
 			       + l->l_relro_addr
 			       + l->l_relro_size),
 			      GLRO(dl_pagesize));