This PR intends to improve the map_space function and merge some regions together when possible.
Not all cases are covered. In order to keep it simple enough, it is relying on the fact that for example, ELF sections cannot overlap ("Sections in a file may not overlap. No byte in a file resides in more than one section")
I do not know whethew this is true for PE.
This PR intends to improve the
map_space
function and merge some regions together when possible. Not all cases are covered. In order to keep it simple enough, it is relying on the fact that for example, ELF sections cannot overlap ("Sections in a file may not overlap. No byte in a file resides in more than one section") I do not know whethew this is true for PE.