This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Locating the RW and ZI load region

I'm wanting to create a code image with the layout:


  1 - Startup/Bootstrap
  2 - Executable code
  3 - (probable gap)
  4 - Fixed location dispatch table
  5 - (probably gap)
  6 - Fixed location tables
  7 - (probable gap)
  8 - Fixed location text

I've got the scatter file doing all of this - Except for one thing.

The initial RW and ZI Load regions always occur following the image - And are copied/decompressed to their required location during the scatter load.

The documentation suggests that this is where it is always placed, but I don't really want it there.

Is there any way to force the linker to place these initial RW and ZI load regions at a specific location?

Parents
  • Sorry, but I don't think your understanding what I am saying.

    I know how to locate the RW and ZI sections - It is quite straightforward.

    But ... The initialised data within the RW section is copied to there by the scatter loader (just prior to entry of 'main') and it is the section that I want to locate.

Reply
  • Sorry, but I don't think your understanding what I am saying.

    I know how to locate the RW and ZI sections - It is quite straightforward.

    But ... The initialised data within the RW section is copied to there by the scatter loader (just prior to entry of 'main') and it is the section that I want to locate.

Children
No data