Function goblin::elf32::gnu_hash::hash[][src]

pub fn hash(symbol: &str) -> u32
Expand description

GNU hash function: accepts a symbol name and returns a value that may be used to compute a bucket index.

Consequently, if the hashing function returns the value x for some name, buckets[x % nbuckets] gives an index, y, into both the symbol table and the chain table.