diff --git a/README.md b/README.md index 2cf04d2..e7a9c74 100644 --- a/README.md +++ b/README.md @@ -63,10 +63,15 @@ Functions --------- ``` +/* Read */ int readelf(FILE *f, Fhdr *fp); uint8_t* readelfsection(FILE *f, char *name, uint64_t *size, Fhdr *fp); void freeelf(Fhdr *fp); + +/* Print */ void printelfhdr(Fhdr *fp); + +/* String */ char* elfclass(uint8_t class); char* elfdata(uint8_t data); char* elfosabi(uint8_t osabi); diff --git a/elf.h b/elf.h index 10b2494..5fe16dc 100644 --- a/elf.h +++ b/elf.h @@ -47,10 +47,15 @@ struct Fhdr { uint8_t *strndx; /* Copy of String Table */ }; +/* Read */ int readelf(FILE*, Fhdr*); uint8_t* readelfsection(FILE*, char*, uint64_t*, Fhdr*); void freeelf(Fhdr*); + +/* Print */ void printelfhdr(Fhdr*); + +/* String */ char* elfclass(uint8_t); char* elfdata(uint8_t); char* elfosabi(uint8_t);