mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 03:02:28 +00:00
Mint APE Loader 1.6
This change fixes a bug with loading pure bss program headers.
This commit is contained in:
parent
c48ee8e4fe
commit
1a5ef5ba13
11 changed files with 87 additions and 51 deletions
|
@ -317,7 +317,9 @@ static void showpeheader(struct NtImageNtHeaders *pe) {
|
|||
printf("\n");
|
||||
showpeoptionalheader(pecheckaddress(mz, mzsize, &pe->OptionalHeader,
|
||||
pe->FileHeader.SizeOfOptionalHeader));
|
||||
ShowSections(pecheckaddress(mz, mzsize, pe + 1,
|
||||
ShowSections(pecheckaddress(mz, mzsize,
|
||||
(char *)(pe + 1) +
|
||||
pe->OptionalHeader.NumberOfRvaAndSizes * 8,
|
||||
pe->FileHeader.NumberOfSections *
|
||||
sizeof(struct NtImageSectionHeader)),
|
||||
pe->FileHeader.NumberOfSections);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue