Skip to content

How to set default base address for custom elf architecture? #2460

Discussion options

You must be logged in to vote

So there's two ways to go about doing this, presently:

It should be possible to set this during load using load options to set the base address manually (see: "Image Base Address" option).

Another more involved option would be to use a derived BinaryView. Essentially, you'd define a new BinaryViewType, but in the initialization method you'd call and create a normal ELF binaryview, change the segments/sections around to reflect what you want, then return that ELF view as if it was your own view. This would also require you to munge the ELF header in some way to make sure the file gets diverted to your own view instead.

The issue with your current approach is just that the callback there is…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rssor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants