[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] [#28 GCL 2.6.5 on FC3] (new)

From: anonymous
Subject: [Axiom-developer] [#28 GCL 2.6.5 on FC3] (new)
Date: Tue, 18 Jan 2005 00:11:56 -0600

\\FC3 has made brk() added pages non-executable by default.  You need
\\this at the end of h/386-linux.h:
\\#ifdef IN_SFASL
\\#include <sys/mman.h>
\\#define CLEAR_CACHE {\
\\   void *p,*pe; \
\\   p=(void *)((unsigned long)memory->cfd.cfd_start & ~(PAGESIZE-1)); \
\\   pe=(void *)((unsigned long)(memory->cfd.cfd_start+memory->cfd.cfd_size) & 
\\   if (mprotect(p,pe-p,PROT_READ|PROT_WRITE|PROT_EXEC)) {\
\\     fprintf(stderr,"%p %p\n",p,pe);\
\\     perror("");\
\\     FEerror("Cannot mprotect", 0);\
\\   }\
\\Not sure what the overhead of this is on each load, but we might just
\\make it the Linux default across the board for simplicity.
\\Alternatively, would either need a runtime or compile time test to
\\detect when its needed.  I'll place this on the errata page for
\\inclusion in any possible 2.6.6, and do something easy in CVS head for
forwarded from

reply via email to

[Prev in Thread] Current Thread [Next in Thread]