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

Grouping all string Literals in one pool in the binary image

Note: This was originally posted on 20th June 2013 at http://forums.arm.com

I am currently ramping up on ARM DS-5. I want to know if it is possible to ensure that all string literals and constants in the entire binary output image, can be grouped/pooled in one single contiguous location, so that I have a clear distinction between the location of Code and the location of String literals (and constants) in my binary image.


I have read about Literal pooling in ARM tools. But what I understood is that each section will have its own literal pool. And if a section is larger than 4KB, more Literal pools will be needed for the same section.
I want to know if it is possible to have only one literal pool for the entire binary image.
Alternatively, is it possible to group all literal pools together so that they are contiguous in memory?

Thanks.
Parents
  • Note: This was originally posted on 3rd July 2013 at http://forums.arm.com

    @Scott: Sorry for the delay. I can not reveal the specifics. My understanding of the issue is that code running from one memory should not have access to the literals used by code running from another memory, within the same system. If we can group the literals and constants in a contiguous region, we can apply separate permissions to that region. Can ARM DS5 be directed to group all the literals and constants in one contiguous memory location?
Reply
  • Note: This was originally posted on 3rd July 2013 at http://forums.arm.com

    @Scott: Sorry for the delay. I can not reveal the specifics. My understanding of the issue is that code running from one memory should not have access to the literals used by code running from another memory, within the same system. If we can group the literals and constants in a contiguous region, we can apply separate permissions to that region. Can ARM DS5 be directed to group all the literals and constants in one contiguous memory location?
Children
No data