mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-01 02:02:28 +00:00
Clean up some code
This commit is contained in:
parent
531bfbd61f
commit
ed161b240e
17 changed files with 107 additions and 182 deletions
|
@ -186,8 +186,9 @@ long DisFindSym(struct Dis *d, int64_t addr) {
|
|||
l = m + 1;
|
||||
}
|
||||
}
|
||||
if (r && d->syms.p[r - 1].addr < 256) {
|
||||
/* XXX: prevent skewed binbase from doing weirdness */
|
||||
// TODO(jart): This was <256 but that broke SectorLISP debugging
|
||||
// Why did the Cosmo binbase bootloader need this?
|
||||
if (r && d->syms.p[r - 1].addr < 32) {
|
||||
return -1;
|
||||
}
|
||||
if (r && (addr == d->syms.p[r - 1].addr ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue