summaryrefslogtreecommitdiff
path: root/hash.h
blob: f2d5806761df246d78ca530efef475881f99e392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef HASH_H
#define HASH_H

#include <common.h>
#include <libelf.h>
#include <gelf.h>

void setup_hash(Elf_Data *hash_data,
                Elf32_Word nbuckets,
                Elf32_Word nchains);

void add_to_hash(Elf_Data *hash_data,
                 const char *symbol,
                 int symindex);

int hash_lookup(Elf *elf, 
                section_info_t *hash,
                section_info_t *symtab,
                const char *symname,
                GElf_Sym *sym_mem);

#endif/*HASH_H*/