The CafeOS loader skips import sections when calculating the lower bounds of loader info (see decaf-emu).
This ends up using symtab for the lower bound which comes after the imports, resulting in a negative offset here.
This PR adds a dummy section (which is not using the import type) before the imports in loadmem, which makes sure the lower bounds stay correct.
The CafeOS loader skips import sections when calculating the lower bounds of loader info (see decaf-emu). This ends up using symtab for the lower bound which comes after the imports, resulting in a negative offset here.
This PR adds a dummy section (which is not using the import type) before the imports in loadmem, which makes sure the lower bounds stay correct.