Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mirror addresses #9

Closed
esaulenka opened this issue Jun 10, 2019 · 4 comments
Closed

mirror addresses #9

esaulenka opened this issue Jun 10, 2019 · 4 comments
Labels
question Further information is requested

Comments

@esaulenka
Copy link

Sorry for question, but i don't found, how to specify that addresses 0x80001234 and 0xA0001234 point to the same location?

@esaulenka esaulenka added the question Further information is requested label Jun 10, 2019
@mumbel
Copy link
Owner

mumbel commented Jun 10, 2019

Not certain on best approach, but you can file->'add to program' and select same ROM. In that popup you'll want to click 'Options' where you can specify alternate load address, offset into file, data Len, and block name

@esaulenka
Copy link
Author

Ok, thanks. IDA converts this automatically (when i name dword 0xA000abcd as pointer, it become indicate to 0x8000abcd).
For me, this task looks like good start point to learn how to write plugins for Ghidra ;-)

@mumbel
Copy link
Owner

mumbel commented Jun 11, 2019

I asked a Dev in my pull request. Seems possible both in code and when loading from his answer

@mumbel
Copy link
Owner

mumbel commented Jun 16, 2019

Sorry hadn't had much time to play with this. Do not know how to automate this, but it seems really good from a quick glance with this setup:

  • load rom at 0x80000000, don't auto-analyze yet
  • open memory map settings, add new, add a name, offset 0xA0000000, length 0x180000, click execute check-box, choose byte-mapped in drop down, new address option should already be 0x80000000.
  • open memory map settings, add new, add a name, offset 0xC0000000, length 0x180000, click execute check-box, choose byte-mapped in drop down, new address option should already be 0x80000000.
  • save memory map
  • auto-analyze
    e/ well maybe i don't know what i'm looking at, seeing some issues. but is this closer to what you were looking for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants