This reverts commit 505329b5b3ee4cb47d0a3590ccd62a65dbf83fc9.
Unified · Split
| @@ -114,7 +114,7 @@ ST_FUNC int put_elf_sym(Section *s, uplong value, unsigned long size, · 113 unmodified lines | |||
| 114 | if (ELFW(ST_BIND)(info) != STB_LOCAL) { | 114 | if (ELFW(ST_BIND)(info) != STB_LOCAL) { |
| 115 | /* add another hashing entry */ | 115 | /* add another hashing entry */ |
| 116 | nbuckets = base[0]; | 116 | nbuckets = base[0]; |
| 117 | h = name ? elf_hash(name) % nbuckets : 0; | 117 | h = elf_hash(name) % nbuckets; |
| 118 | *ptr = base[2 + h]; | 118 | *ptr = base[2 + h]; |
| 119 | base[2 + h] = sym_index; | 119 | base[2 + h] = sym_index; |
| 120 | base[1]++; | 120 | base[1]++; |