GNU hash func
| 315 | |
| 316 | //GNU hash func |
| 317 | static 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 | |
| 328 | static ElfW(Phdr) *xh_elf_get_first_segment_by_type(xh_elf_t *self, ElfW(Word) type) |
| 329 | { |
no outgoing calls
no test coverage detected