Skip to content

Commit

Permalink
elf-module: Propagate base address to fallback ELF
Browse files Browse the repository at this point in the history
So the emitted address fields are correct.
  • Loading branch information
oleavr committed Jan 7, 2025
1 parent 1fd528f commit ec9f780
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gum/gumelfmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,9 @@ gum_elf_module_try_get_fallback_elf_module (GumElfModule * self)
gum_elf_module_enumerate_sections (self,
gum_try_load_debugdata_as_fallback_module, self);
}

if (self->fallback_elf_module != NULL)
self->fallback_elf_module->base_address = self->base_address;
}

GUM_ELF_MODULE_UNLOCK (self);
Expand Down

0 comments on commit ec9f780

Please sign in to comment.