|
From: | Hans Yang |
Subject: | [Qemu-devel] Problem with running machine code specified in the program |
Date: | Mon, 30 Aug 2004 14:00:39 +0800 |
I got “qemu: uncaught target signal 11
(Segmentation fault) – exiting” when running program like that: typedef int (*native_f)(); typedef struct { native_f func; } ST; int main() { ST p; const int code[1] = { 0xe }; p.func = (native_f)code; p.func(); return 0; } My platform details: CPU: Intel Pentium 4 OS: Fedora Core release 2 Compiler: arm-linux-gcc 2.95.3 Emulator: qemu-arm |
[Prev in Thread] | Current Thread | [Next in Thread] |