This commit is contained in:
Alex
2023-02-10 05:44:06 +02:00
parent 5de802f825
commit dff306fa2e
14 changed files with 1056 additions and 40 deletions

View File

@ -0,0 +1,14 @@
#include "ld.h"
uint32_t ElfHash(const unsigned char *Name)
{
uint32_t i = 0, j;
while (*Name)
{
i = (i << 4) + *Name++;
if ((j = i & 0xF0000000) != 0)
i ^= j >> 24;
i &= ~j;
}
return i;
}