|
From: | Ted Williams |
Subject: | Executing code |
Date: | Wed, 28 Jun 2006 17:50:16 -0700 |
In executing C++ code running on Red Hat
Fedora 5 compiled with GNU C++ compiler, I get a SIGSEGV segmentation fault when
the code attempts to jump to a data segment holding a small piece of native
code. Is there a way in the C++ code to mark this array of bytes as
code?
The offending line of code is:
asm ("ljmp *%[src]" : : [src] "m"
(Xp));
where Xp is a byte pointer to an array in memory
holding native code.
Thanks for your help!
|
[Prev in Thread] | Current Thread | [Next in Thread] |