MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / xh_elf_gnu_hash

Function xh_elf_gnu_hash

Bcore/src/main/cpp/xhook/xh_elf.c:317–326  ·  view source on GitHub ↗

GNU hash func

Source from the content-addressed store, hash-verified

315
316//GNU hash func
317static uint32_t xh_elf_gnu_hash(const uint8_t *name)
318{
319 uint32_t h = 5381;
320
321 while(*name != 0)
322 {
323 h += (h << 5) + *name++;
324 }
325 return h;
326}
327
328static ElfW(Phdr) *xh_elf_get_first_segment_by_type(xh_elf_t *self, ElfW(Word) type)
329{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected