diff options
author | rsc <devnull@localhost> | 2004-04-20 04:33:53 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-20 04:33:53 +0000 |
commit | 62c277efe84efc5c90ad6578a55b4eaa9a22827c (patch) | |
tree | be25c28df32bf1ab1dedc8d11a944a6afeb3111a /src/libmach | |
parent | 86fa0d22778563378cd6fb422014aa37aa762d95 (diff) | |
download | plan9port-62c277efe84efc5c90ad6578a55b4eaa9a22827c.tar.gz plan9port-62c277efe84efc5c90ad6578a55b4eaa9a22827c.tar.bz2 plan9port-62c277efe84efc5c90ad6578a55b4eaa9a22827c.zip |
fix stupid bug in findsym
Diffstat (limited to 'src/libmach')
-rw-r--r-- | src/libmach/sym.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmach/sym.c b/src/libmach/sym.c index 7953019b..8347630c 100644 --- a/src/libmach/sym.c +++ b/src/libmach/sym.c @@ -295,7 +295,7 @@ findsym(Loc loc, uint class, Symbol *s) l.addr = loc.addr - p->base; if((t = ffindsym(p, l, CANY)) != nil){ d = l.addr - t->loc.addr; - if(d < 4096) + if(0 <= d && d < 4096) if(best == nil || d < bestd){ best = t; bestp = p; |