Re: how to turn off NX bit in assembly?



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
.



Relevant Pages

  • Re: .net
    ... FFTW second class in OCaml just because the OCaml compiler doesn't inline ... Seems like the Linux world is more stable. ... I've had a very interesting time using Windows this year having been using ... innovation, which has been leading to a higher perceived innovation rate ...
    (comp.lang.functional)
  • Re: how to turn off NX bit in assembly?
    ... I want to turn off AMD64 NX bit in assembly code(at&t syntax or gcc ... inline code). ... I don't think the OS (Windows and Linux) would allow you to mess ...
    (alt.lang.asm)
  • Re: Future of IT in Lebanon
    ... working knowledge of Indian programmers DNA, nor of their intuitive Java ... > So Longhorn is not an experiment and Linux is an experiment? ... another chapter in the Windows story, and the Microsoft marketing machine is ... > application opens, Check the about, it says Microsoft Visual Basic 6.3. ...
    (soc.culture.lebanon)
  • FTP DOWNLOAD! More than 6500 CRACKED SOFTWARE(CAD,CAE,CAM,ED
    ... Autodesk Architectural Desktop 2005 ... DASSAULT SYSTEMES CAA ENOVIA LCA V5R13 ... ALTAIR.OPTISTRUCT V5.1 for LINUX ... ANSYS V8.0 FOR WINDOWS ...
    (microsoft.public.dotnet.framework.adonet)
  • Linux for Senior Citizens
    ... Linux for Senior Citizens ... For such people, I believe, Windows really is a better option: ... The kernel manages all the hardware and also looks after all running ...
    (uk.people.silversurfers)