Skip to content

Adding Multiple Memory Regions #2240

Answered by psifertex
psifertex asked this question in Q&A
Discussion options

You must be logged in to vote

Current recommendation

This question, or variations on it comes up a lot so I wanted to try to put together a longer writeup for people that have a need of this.

First, this is a bit of a hack and it's necessitated by issue #920.

As you can see from that issue, right now, BN wants memory to be backed by file contents because of the way the loader works. So there's two general approaches to this problem. First, you can simply concatenate the extra memory regions to the binary:

cat executable memap1 memmap2 > allmem

Then, when you open BN the usual executable will be parsed but nothing will be done with the additional memory. Next, simply map them where you'd like them to go by adding segm…

Replies: 1 comment

Comment options

psifertex
Jan 21, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by psifertex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant