version 1.11, 2017/09/29 09:30:42 |
version 1.12, 2017/09/29 16:05:53 |
|
|
/* elf.c */ |
/* elf.c */ |
int iself(const char *, size_t); |
int iself(const char *, size_t); |
int elf_getshstab(const char *, size_t, const char **, size_t *); |
int elf_getshstab(const char *, size_t, const char **, size_t *); |
ssize_t elf_getsymtab(const char *, const char *, size_t, |
ssize_t elf_getsymtab(const char *, size_t, const char *, size_t, |
const Elf_Sym **, size_t *); |
const Elf_Sym **, size_t *); |
ssize_t elf_getsection(char *, size_t, const char *, const char *, |
ssize_t elf_getsection(char *, size_t, const char *, const char *, |
size_t, const char **, size_t *); |
size_t, const char **, size_t *); |
|
|
return 1; |
return 1; |
|
|
/* Find symbol table location and number of symbols. */ |
/* Find symbol table location and number of symbols. */ |
if (elf_getsymtab(p, shstab, shstabsz, &symtab, &nsymb) == -1) |
if (elf_getsymtab(p, filesize, shstab, shstabsz, &symtab, &nsymb) == -1) |
warnx("symbol table not found"); |
warnx("symbol table not found"); |
|
|
/* Find string table location and size. */ |
/* Find string table location and size. */ |