add a AT_ENTRY entry to the auxiliary vector

This commit is contained in:
NAKAMURA Gou
2013-10-08 18:51:16 +09:00
parent bb1390b085
commit a171da1015
4 changed files with 5 additions and 0 deletions

View File

@@ -152,6 +152,7 @@ struct program_load_desc *load_elf(FILE *fp)
desc->at_phdr = load_addr + hdr.e_phoff;
desc->at_phent = sizeof(phdr);
desc->at_phnum = hdr.e_phnum;
desc->at_entry = hdr.e_entry;
return desc;
}