I'm implementing a program which loads pure code from a file and calls the first instruction. No matter what I do, I get a Segmentation fault when my call instruction is executed. What do I do wrong?
char code[65536];
...
__asm__("movl code, %eax");
__asm__("call *%eax");