commit | 8df4a179ab5a8a2e4a185998aa0dd5d8e80b254e | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Tue May 12 11:44:50 2020 -0400 |
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | Wed May 13 11:25:23 2020 +1000 |
tree | 74abb178f4199319b4e87547291b270b8014cbf3 | |
parent | d04fea6ab0431e81e43a9ce5b1ec33e0c2ea66eb [diff] |
elf: Implement elf_get_file_size to determine size of an ELF image Implement elf_get_file_size to determine the size of an ELF image that has been loaded into a buffer much larger than the actual size of the original file. We determine the size by searching for the farthest offset declared by the ELF headers. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>