aboutsummaryrefslogtreecommitdiffstats
path: root/elf/elf_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/elf_utils.c')
-rw-r--r--elf/elf_utils.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/elf/elf_utils.c b/elf/elf_utils.c
deleted file mode 100644
index 157dc2a8..00000000
--- a/elf/elf_utils.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "elf_utils.h"
-
-unsigned long elf_hash(const unsigned char *name) {
- unsigned long h = 0;
- unsigned long g;
-
- while (*name) {
- h = (h << 4) + *name++;
- if ((g = h & 0xF0000000))
- h ^= g >> 24;
-
- h &= ~g;
- }
-
- return h;
-}
-
-unsigned long elf_gnu_hash(const unsigned char *name) {
- unsigned long h = 5381;
- unsigned char c;
-
- for (c = *name; c != '\0'; c = *++name) {
- h = h * 33 + c;
- }
-
- return h & 0xFFFFFFFF;
-}