lkml.org 
[lkml]   [1998]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: a.out non demand page fix
On Wed, Sep 02, 1998 at 01:40:29PM +0000, Jes Sorensen wrote:

> I have an old patch pending for making non demand page executables
> work properly on architectures which are not cache coherent.
>
> Its for old code and probably a not very used file format these days,
> but it is actually a bugfix ;-)

You missed another occurance of this bug in binfmt_elf.c. Patch below.

Ralf

--- binfmt_elf.c.orig Fri Sep 4 00:51:06 1998
+++ binfmt_elf.c Fri Sep 4 00:56:28 1998
@@ -375,6 +375,8 @@
retval = read_exec(interpreter_dentry, offset, addr, text_data, 0);
if (retval < 0)
goto out;
+ flush_icache_range((unsigned long)addr,
+ (unsigned long)addr + text_data);

do_mmap(NULL, ELF_PAGESTART(text_data + ELF_EXEC_PAGESIZE - 1),
interp_ex->a_bss,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:2.240 / U:2.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site