Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115988711
D39517.id120191.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
624 B
Referenced Files
None
Subscribers
None
D39517.id120191.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D39517: rtld: fix SysV hash function overflow
Attached
Detach File
Event Timeline
Log In to Comment