Re: how to turn off NX bit in assembly?
- From: "H. Peter Anvin" <hpa@xxxxxxxxx>
- Date: Sun, 16 Nov 2008 15:55:28 -0800
Alexei A. Frounze wrote:
On Nov 16, 3:59 pm, simplicity <plan9assemb...@xxxxxxxxx> wrote:
Hi,
I want to turn off AMD64 NX bit in assembly code( at&t syntax or gcc
inline code).
TIA
I don't think the OS (Windows and Linux) would allow you to mess
around with system registers and page tables. Under Windows, btw, you
can allocate executable pages by specifying the appropriate bitmask
parameter of function VirtualAlloc().
Similarly, under Linux you'd call mprotect() with the appropriate
parameters, or allocate memory with mmap() with the appropriate flags.
-hpa
.
- References:
- how to turn off NX bit in assembly?
- From: simplicity
- Re: how to turn off NX bit in assembly?
- From: Alexei A. Frounze
- how to turn off NX bit in assembly?
- Prev by Date: Re: Banks and economy
- Next by Date: Re: Banks and economy
- Previous by thread: Re: how to turn off NX bit in assembly?
- Next by thread: Re: how to turn off NX bit in assembly?
- Index(es):
Relevant Pages
|