mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-28 21:40:30 +00:00
Make improvements
- Polyfill readlink("foo/") dir check on Windows - Support asynchronous signal delivery on Windows - Restore Windows Console from execve() daisy chain - Work around bug in AARCH64 Optimized Routines memcmp() - Disable unbourne.com shell completion on Windows for now - Don't always set virtual terminal input state on console - Remove Musl Libc's unusual preservation of realpath("//") - Make realpath() strongly link malloc() to pass configure test - Delete cosh.com shell, now that unbourne.com works on Windows!
This commit is contained in:
parent
f9c9a323fe
commit
425c055116
40 changed files with 581 additions and 706 deletions
|
@ -1458,9 +1458,10 @@ static char *SecondPass2(char *p, struct Input *in) {
|
|||
// the new file size. that's only possible if all the fat ape hdrs
|
||||
// we generate are able to fit inside the prologue.
|
||||
p = ALIGN(p, 8);
|
||||
// TODO(jart): Figure out why not skewing corrupts pe import table
|
||||
in->we_must_skew_pe_vaspace =
|
||||
ROUNDUP(p - prologue + in->size_of_pe_headers,
|
||||
(int)in->pe->OptionalHeader.FileAlignment) > in->minload;
|
||||
1 || ROUNDUP(p - prologue + in->size_of_pe_headers,
|
||||
(int)in->pe->OptionalHeader.FileAlignment) > in->minload;
|
||||
if (!in->we_must_skew_pe_vaspace) {
|
||||
in->pe_e_lfanew = p - prologue;
|
||||
in->pe_SizeOfHeaders = in->pe->OptionalHeader.SizeOfHeaders;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue