armijnhemel / binaryanalysis-ng

Binary Analysis Next Generation (BANG)
GNU Affero General Public License v3.0
471 stars 66 forks source link

Elf program headers (part 1) #362

Closed armijnhemel closed 1 year ago

armijnhemel commented 1 year ago

This PR partially fixes parsing of ELF files that do not have section headers, just program headers. There are plenty of examples on embedded devices and the operating system doesn't need the section headers. Previously these files would be tagged as statically linked, even if they are dynamically linked.

This work is not complete yet: metadata, symbols, etc. still need to be extracted.