diff options
Diffstat (limited to 'api')
| -rw-r--r-- | api/elf/elf.h | 1 | ||||
| -rw-r--r-- | api/lib/elf.h | 2 | ||||
| -rw-r--r-- | api/libc/string.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/api/elf/elf.h b/api/elf/elf.h index 209c219..b5a136a 100644 --- a/api/elf/elf.h +++ b/api/elf/elf.h @@ -81,4 +81,5 @@ typedef uint8_t Elf_Byte; #define DT_STRSZ 10 #define DT_SYMENT 11 #define DT_JMPREL 0x17 +#define DT_PLTREL 20 diff --git a/api/lib/elf.h b/api/lib/elf.h index 05d25bc..951fc25 100644 --- a/api/lib/elf.h +++ b/api/lib/elf.h @@ -12,4 +12,6 @@ bool elf64_validate(Elf64_Ehdr *ehdr, unsigned type, unsigned machine); size_t elf64_size(Elf64_Ehdr *ehdr, Elf64_Phdr *phdr); +void *elf64_dt_ptr(void *base, Elf64_Dyn *dyntab, unsigned long dt_type); +uintptr_t elf64_dt_val(Elf64_Dyn *dyntab, unsigned long dt_type); diff --git a/api/libc/string.h b/api/libc/string.h index d1d45d5..849275d 100644 --- a/api/libc/string.h +++ b/api/libc/string.h @@ -7,5 +7,6 @@ void *memmove(void *dest, const void *src, size_t size); void *memset(void *dest, int val, size_t size); int memcmp(const void *str1, const void *str2, size_t count); size_t strlen(const char *s); +int strcmp(const char *s1, const char *s2); unsigned long long strtoull(const char *restrict begin, char **restrict end, int base); |
