Module Name: src
Committed By: christos
Date: Tue Apr 18 22:42:52 UTC 2023
Modified Files:
src/libexec/ld.elf_so: symbol.c
Log Message:
Oops wrong mask.
To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/libexec/ld.elf_so/symbol.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/ld.elf_so/symbol.c
diff -u src/libexec/ld.elf_so/symbol.c:1.74 src/libexec/ld.elf_so/symbol.c:1.75
--- src/libexec/ld.elf_so/symbol.c:1.74 Tue Apr 18 12:48:45 2023
+++ src/libexec/ld.elf_so/symbol.c Tue Apr 18 18:42:52 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: symbol.c,v 1.74 2023/04/18 16:48:45 christos Exp $ */
+/* $NetBSD: symbol.c,v 1.75 2023/04/18 22:42:52 christos Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: symbol.c,v 1.74 2023/04/18 16:48:45 christos Exp $");
+__RCSID("$NetBSD: symbol.c,v 1.75 2023/04/18 22:42:52 christos Exp $");
#endif /* not lint */
#include <err.h>
@@ -94,7 +94,7 @@ _rtld_sysv_hash(const char *name)
h = (h << 4) + *p++;
h ^= (h >> 24) & 0xf0;
}
- return (h & 0xffffffff);
+ return (h & 0x0fffffff);
}
/*