mcexec: add a interpreter invocation

When start a program which have a PT_INTERP segment
(dynamic linkaged program have a PT_INTERP segment),
start the interpreter indicated by the PT_INTERP segment.
This commit is contained in:
NAKAMURA Gou
2013-10-11 21:26:53 +09:00
parent a171da1015
commit 413fe7b54a
3 changed files with 119 additions and 10 deletions

View File

@@ -85,9 +85,7 @@ struct program_image_section {
unsigned long filesz, offset;
int prot;
int padding;
#if 0
void *source;
#endif
void *fp;
};
struct program_load_desc {