Open pr0xy-t opened 1 year ago
I don't believe this is actually incorrect. ko files don't have segments specified so we just create fake segments for each of the sections. I do think that this could be misleading as people could expect those .not sections to show up in memory when they will not.
One potential fix here is to check for SHT_PROGBITS
instead of checking for !SHT_NOBITS
as we currently do
Version and Platform (required):
Bug Description: When binary ninja parses the following ELF files, the address of the ELF sections are not correct.
ELF file with program header size 0 (e.g. kernel module)
&&ELF file with other sections defined above the .text entry in the section headers
Such a file can be created by building a simple kernel module in ubuntu 20.04.
Steps To Reproduce: poc.zip