elf image can be loaded to memory

fix some bug, now that image can be loaded to memory
next step, will debug to make processs can be runed
as a user space process.

Signed-off-by: Le Min <lemin9538@gmail.com>