Date: Tue, 25 Oct 2005 18:42:14 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 85840 for review Message-ID: <200510251842.j9PIgEBP039326@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=85840 Change 85840 by jhb@jhb_slimer on 2005/10/25 18:41:21 Save this patch here so I don't lose it. The original problem reporter on current@ never got back to me. :( Affected files ... .. //depot/projects/smpng/sys/kern/link_elf.c#29 edit Differences ... ==== //depot/projects/smpng/sys/kern/link_elf.c#29 (text+ko) ==== @@ -1022,6 +1022,12 @@ unsigned long hash; int i; + /* If we don't have a hash, bail. */ + if (ef->buckets == NULL || ef->nbuckets == 0) { + printf("link_elf_lookup_symbol: missing symbol hash table\n"); + return ENOENT; + } + /* First, search hashed global symbols */ hash = elf_hash(name); symnum = ef->buckets[hash % ef->nbuckets];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510251842.j9PIgEBP039326>