Initial Contribution
[0xdroid:external_elfcopy.git] / hash.h
1 #ifndef HASH_H
2 #define HASH_H
3
4 #include <common.h>
5 #include <libelf.h>
6 #include <gelf.h>
7
8 void setup_hash(Elf_Data *hash_data,
9                 Elf32_Word nbuckets,
10                 Elf32_Word nchains);
11
12 void add_to_hash(Elf_Data *hash_data,
13                  const char *symbol,
14                  int symindex);
15
16 int hash_lookup(Elf *elf, 
17                 section_info_t *hash,
18                 section_info_t *symtab,
19                 const char *symname,
20                 GElf_Sym *sym_mem);
21
22 #endif/*HASH_H*/