This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH] [RESEND] Flush cache after solving TEXTRELs if arch requires it
- From: "Kirill A. Shutemov" <kirill at shutemov dot name>
- To: libc-alpha at sourceware dot org
- Cc: libc-ports at sourceware dot org
- Date: Thu, 3 Jun 2010 19:39:53 +0300
- Subject: [PATCH] [RESEND] Flush cache after solving TEXTRELs if arch requires it
On ARM instruction and data cache is not coherent, so we have to flush
cache after solving TEXTRELs to be sure that we run correct code.
This is regression introduced by commit f133c097.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
---
2010-06-02 Kirill A. Shutemov <kirill@shutemov.name>
* elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch requires it
---
elf/dl-reloc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index 6c00691..01f458f 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -307,6 +307,9 @@ _dl_relocate_object (struct link_map *l, struct
r_scope_elem *scope[],
goto call_error;
}
+#ifdef CLEAR_CACHE
+ CLEAR_CACHE (textrels->start, textrels->start + textrels->len);
+#endif
textrels = textrels->next;
}
--
1.7.0.6