History

Revert "Don't call elf_hash on NULL value"

This reverts commit 505329b5b3ee4cb47d0a3590ccd62a65dbf83fc9.

Thomas Preud'homme committed 13 years ago

Commit ae33c301 parent 2f6b8461 file · +1 −1Browse files

Unified · Split

tccelf.c+1−1
@@ -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]++;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t