mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Remove old zip base skew hack
Since 8ff48201ca
we no longer need the
hack where, when running .com.dbg files, we scanned for the embedded
.com file offset, and then computed zip offsets realtive to that. It
wasn't very reliable in the first place, and was causing issues with
running our new .com.dbg executables, which are true zip files.
This commit is contained in:
parent
207e18a060
commit
52d28966f7
10 changed files with 134 additions and 238 deletions
|
@ -430,10 +430,6 @@ void DisassembleZip(const char *path, uint8_t *p, size_t n) {
|
|||
uint16_t i;
|
||||
static int records;
|
||||
uint8_t *eocd32, *eocd64, *cdir, *cf, *lf, *q;
|
||||
if (_endswith(path, ".com.dbg") && (q = memmem(p, n, "MZqFpD", 6))) {
|
||||
n -= q - p;
|
||||
p += q - p;
|
||||
}
|
||||
eocd32 = GetZipCdir32(p, n);
|
||||
eocd64 = GetZipCdir64(p, n);
|
||||
CHECK(eocd32 || eocd64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue