Don't map resource objects.
For one, they generally have a base address of 0x0, but also, we're probably going to load/parse these into a hashtable somewhere in the loader and use that for resource lookups instead of parsing LX binaries during DosGetResource(), and that is more of a malloc() thing than an mmap() thing.
This commit is contained in:
1 parent
5aff2d5b02
commit
dbacb96215
1 file changed
+4
@@ -424,6 +424,10 @@ static __attribute__((noreturn)) void loadExe(const char *exefname, uint8 *exe,
|
||||
|
||||
const LxObjectTableEntry *obj = ((const LxObjectTableEntry *) (exe + lx->object_table_offset));
|
||||
for (uint32 i = 0; i < lx->module_num_objects; i++, obj++) {
|
||||
|
||||
if (obj->object_flags & 0x8) // !!! FIXME: resource object; ignore this until resource support is written, later.
|
||||
continue;
|
||||
|
||||
uint32 vsize = obj->virtual_size;
|
||||
if ((vsize % lx->page_size) != 0)
|
||||
vsize += lx->page_size - (vsize % lx->page_size);
|
||||
|
||||
Reference in new issue
Block a user