Module goblin::elf64::gnu_hash [] [src]

TODO add proper writeup for how this is constructed, how it resolves symbols, and how it works, see: https://blogs.oracle.com/ali/entry/gnu_hash_elf_sections A Gnu Hash table as 4 sections:

  1. Header
  2. Bloom Filter
  3. Hash Buckets
  4. Hash Values

The header has is an array of four (4) u32s:

  1. nbuckets
  2. symndx
  3. maskwords
  4. shift2

Structs

GnuHash

Functions

hash

GNU hash function: takes a string and returns the u32 hash of that string