Executing machine code in memory

后端 未结 9 1464
盖世英雄少女心
盖世英雄少女心 2020-12-04 12:47

I\'m trying to figure out how to execute machine code stored in memory.

I have the following code:

#include 
#include          


        
9条回答
  •  攒了一身酷
    2020-12-04 13:03

    It seems to me you're loading an ELF image and then trying to jump straight into the ELF header? http://en.wikipedia.org/wiki/Executable_and_Linkable_Format

    If you're trying to execute another binary, why don't you use the process creation functions for whichever platform you're using?

提交回复
热议问题