diff options
author | Maxiwell S. Garcia <maxiwell@linux.ibm.com> | 2019-09-23 19:30:22 -0300 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2020-01-23 11:56:39 +0800 |
commit | 0c074025ef345c64af088c78c7f8f0e14a51f700 (patch) | |
tree | 49ad6fce71c87fed6500bd174ec20d262240c9e5 /m4 | |
parent | 827a7af51bb120579a7addbcda216300988a3b1e (diff) | |
download | talos-petitboot-0c074025ef345c64af088c78c7f8f0e14a51f700.tar.gz talos-petitboot-0c074025ef345c64af088c78c7f8f0e14a51f700.zip |
discover: Add helper functions to read ELF notes
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>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions