Re: executing code in mmapped memory
From: Dennis Handly (dhandly_at_cup.hp.com)
Date: 08/27/03
- Previous message: chlim: "Re: DLT8000 on K-Class HPUX 10.20"
- In reply to: Anton Ertl: "executing code in mmapped memory"
- Next in thread: Anton Ertl: "Re: executing code in mmapped memory"
- Reply: Anton Ertl: "Re: executing code in mmapped memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Aug 2003 20:56:10 -0700
Anton Ertl (anton@mips.complang.tuwien.ac.at) wrote:
: I allocate the memory for the code I generate at run-time with
: mmap(next_address, size, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0)
: As soon as the program tries to execute the first instruction in this
: region, it produces a SIGSEGV
: - the PA-RISC segmentation somehow gets in the way.
This is probably it. How did you "call" this code?
>From a register dump, what is sr4, sr5, pcsqh and pcoqh?
Unfortunately gdb doesn't model the hardware and track the 96 bit PC value.
- Previous message: chlim: "Re: DLT8000 on K-Class HPUX 10.20"
- In reply to: Anton Ertl: "executing code in mmapped memory"
- Next in thread: Anton Ertl: "Re: executing code in mmapped memory"
- Reply: Anton Ertl: "Re: executing code in mmapped memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|