[Top][All Lists]

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

[Tinycc-devel] NX bit setting [execution protection - mprotect(PROT_EXEC

From: Thomas Harning Jr.
Subject: [Tinycc-devel] NX bit setting [execution protection - mprotect(PROT_EXEC)]
Date: Sat, 15 Jan 2005 21:13:34 -0500

Would there be any way to have the execution data relocated to a
mmapped location [or any other location really, that can have the
PROT_EXEC set for the page]?
I ran into Segfaults due to that not being set on my AMD64 system
[which was using a 32-bit compiled TCC], and realized it was being
caused by the pages not being set as executable and loaded the kernel
with noexec=off and noexec32=off [not sure if the 32 one was needed,
but thats besides the point].

>From my understanding of how mmapping the output to shared memory
would work... it would seem that you have to setup your own memory
allocation system and/or move the compiled data after/during
relocation to the shm.

Any suggestions as to hot-fixes [other than my noexec=off] to sidestep
the NX bit?
Any reccomendations as to how to go about relocating the data to a
mmapped shm/file?

Thomas Harning Jr.

reply via email to

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