Page MenuHomeFreeBSD

D39517.id120191.diff
No OneTemporary

D39517.id120191.diff

Index: sys/kern/link_elf.c
===================================================================
--- sys/kern/link_elf.c
+++ sys/kern/link_elf.c
@@ -1470,8 +1470,7 @@
}
/*
- * Hash function for symbol table lookup. Don't even think about changing
- * this. It is specified by the System V ABI.
+ * SysV hash function for symbol table lookup.
*/
static unsigned long
elf_hash(const char *name)
@@ -1482,11 +1481,9 @@
while (*p != '\0') {
h = (h << 4) + *p++;
- if ((g = h & 0xf0000000) != 0)
- h ^= g >> 24;
- h &= ~g;
+ h ^= (h >> 24) & 0xf0;
}
- return (h);
+ return (h & 0xfffffff);
}
static int

File Metadata

Mime Type
text/plain
Expires
Fri, May 2, 6:47 AM (20 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17900596
Default Alt Text
D39517.id120191.diff (624 B)

Event Timeline