|
@@ -117,6 +117,7 @@ int _dl_unmap_cache(void)
|
|
|
void
|
|
|
_dl_protect_relro (struct elf_resolve *l)
|
|
|
{
|
|
|
+#ifdef __ARCH_USE_MMU__
|
|
|
ElfW(Addr) base = (ElfW(Addr)) DL_RELOC_ADDR(l->loadaddr, l->relro_addr);
|
|
|
ElfW(Addr) start = (base & PAGE_ALIGN);
|
|
|
ElfW(Addr) end = ((base + l->relro_size) & PAGE_ALIGN);
|
|
@@ -126,6 +127,7 @@ _dl_protect_relro (struct elf_resolve *l)
|
|
|
_dl_dprintf(2, "%s: cannot apply additional memory protection after relocation", l->libname);
|
|
|
_dl_exit(0);
|
|
|
}
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
|