Subject: Re: ELF loader doesn't mprotect(PROT_EXEC).
To: Bill Studenmund <wrstuden@NetBSD.org>
From: Aymeric Vincent <Aymeric.Vincent@labri.fr>
List: tech-x11
Date: 10/26/2004 21:33:12
Bill Studenmund <wrstuden@NetBSD.org> writes:
> On Thu, Oct 21, 2004 at 05:51:03PM +0200, Aymeric Vincent wrote:
> > diff -u -u -r1.2 elfloader.c
> > --- elfloader.c 28 Mar 2004 15:24:25 -0000 1.2
> > +++ elfloader.c 21 Oct 2004 15:43:16 -0000
> > @@ -758,7 +758,7 @@
> > symbol->address = (char *)&symbol->code.plt[0];
> > symval = (Elf_Addr) symbol->address;
> > ppc_flush_icache(&symbol->code.plt[0]);
> > - ppc_flush_icache(&symbol->code.plt[6]);
> > + ppc_flush_icache(&symbol->code.plt[6]); /* XXX why 6? */
> > break;
>
> Leave that change out.
Sure. Thanks for the explanations it triggered.
Aymeric