Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | discover: Add helper functions to read ELF notes | Maxiwell S. Garcia | 2020-01-23 | 1 | -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> |