Skip to content

Commit

Permalink
Flush cache after solving TEXTRELs if arch requires it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill A. Shutemov authored and Ulrich Drepper committed Jun 15, 2010
1 parent af6edc9 commit 80da2e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2010-06-02 Kirill A. Shutemov <kirill@shutemov.name>

* elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
requires it.

2010-06-10 Luis Machado <luisgpm@br.ibm.com>

* sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
Expand Down
6 changes: 5 additions & 1 deletion elf/dl-reloc.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Relocate a shared object and resolve its references to other loaded objects.
Copyright (C) 1995-2006, 2008, 2009 Free Software Foundation, Inc.
Copyright (C) 1995-2006, 2008, 2009, 2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -307,6 +307,10 @@ _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;
}

Expand Down

0 comments on commit 80da2e0

Please sign in to comment.