Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145421073
D54221.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D54221.diff
View Options
diff --git a/libexec/rtld-elf/powerpc/reloc.c b/libexec/rtld-elf/powerpc/reloc.c
--- a/libexec/rtld-elf/powerpc/reloc.c
+++ b/libexec/rtld-elf/powerpc/reloc.c
@@ -332,7 +332,6 @@
{
const Elf_Rela *relalim;
const Elf_Rela *rela;
- const Elf_Phdr *phdr;
SymCache *cache;
int r = -1;
@@ -361,18 +360,6 @@
done:
if (cache != NULL)
free(cache);
-
- /*
- * Synchronize icache for executable segments in case we made
- * any changes.
- */
- for (phdr = obj->phdr; phdr < obj->phdr + obj->phnum; phdr++) {
- if (phdr->p_type == PT_LOAD && (phdr->p_flags & PF_X) != 0) {
- __syncicache(obj->relocbase + phdr->p_vaddr,
- phdr->p_memsz);
- }
- }
-
return (r);
}
diff --git a/libexec/rtld-elf/powerpc64/reloc.c b/libexec/rtld-elf/powerpc64/reloc.c
--- a/libexec/rtld-elf/powerpc64/reloc.c
+++ b/libexec/rtld-elf/powerpc64/reloc.c
@@ -327,7 +327,6 @@
{
const Elf_Rela *relalim;
const Elf_Rela *rela;
- const Elf_Phdr *phdr;
SymCache *cache;
int bytes = obj->dynsymcount * sizeof(SymCache);
int r = -1;
@@ -359,18 +358,6 @@
done:
if (cache)
munmap(cache, bytes);
-
- /*
- * Synchronize icache for executable segments in case we made
- * any changes.
- */
- for (phdr = obj->phdr; phdr < obj->phdr + obj->phnum; phdr++) {
- if (phdr->p_type == PT_LOAD && (phdr->p_flags & PF_X) != 0) {
- __syncicache(obj->relocbase + phdr->p_vaddr,
- phdr->p_memsz);
- }
- }
-
return (r);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 20, 3:40 PM (3 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28900832
Default Alt Text
D54221.diff (1 KB)
Attached To
Mode
D54221: Revert "Additional icache paranoia: non-PLT relocations can modify the text segment."
Attached
Detach File
Event Timeline
Log In to Comment