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

PADDING execution regions

Note: This was originally posted on 24th February 2010 at http://forums.arm.com

Dear All,

   I am looking for RVDS 2.2 arm linker option where I can pad the execution region with 0xFF's so that the size of the execution region is aligned to 4KB.

I have tried to use

EXEC 0x2000 PADVALUE 0xFFFFFFFFFF 0x1000
{
  x.ptl(RO);
}

But the unused EXEC region is not padded with 0xFF's in the output image.
Parents
  • Note: This was originally posted on 25th February 2010 at http://forums.arm.com

    You will need to specify the --no_legacyalign option on the armlink command line. By default the linker assumes it can use 4 bytes alignment without padding, and then "unpack" the binary when running it for the first time. For demand paging this is obviously not what you want.
Reply
  • Note: This was originally posted on 25th February 2010 at http://forums.arm.com

    You will need to specify the --no_legacyalign option on the armlink command line. By default the linker assumes it can use 4 bytes alignment without padding, and then "unpack" the binary when running it for the first time. For demand paging this is obviously not what you want.
Children
No data