summaryrefslogtreecommitdiffstats
path: root/discover/elf.h
Commit message (Collapse)AuthorAgeFilesLines
* discover: Add helper functions to read ELF notesMaxiwell S. Garcia2020-01-231-0/+29
The libelf has low level functions to access the ELF structures. This commit adds two external higher level functions: elf_open_image(): - Get the ELF structure from a binary; elf_getnote_desc() - Get the ELF note 'descriptor' using both namespace and ELF type. The definitions used in the 'elf.h' was taken from linux source code: - arch/powerpc/include/asm/elfnote.h - arch/powerpc/kernel/note.S Signed-off-by: Maxiwell S. Garcia <maxiwell@linux.ibm.com>
OpenPOWER on IntegriCloud