From d451c724327da81709d48bdb4bc008349678b5c8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 18 Dec 1999 22:56:03 +0000 Subject: [PATCH] (_dl_relocate_object): Add call to flush cache after .text segment fixups. --- elf/dl-reloc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c index 54a2acc065..5c3c4d04e3 100644 --- a/elf/dl-reloc.c +++ b/elf/dl-reloc.c @@ -126,6 +126,10 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[], if (__mprotect (mapstart, mapend - mapstart, prot) < 0) _dl_signal_error (errno, l->l_name, "can't restore segment prot after reloc"); + +#ifdef CLEAR_CACHE + CLEAR_CACHE (mapstart, mapend); +#endif } } }