Technical Support
On-Line Manuals
Compiler Reference Guide
Version 6.15
The section function attribute enables you to place code in different sections of the image.
section
In the following example, the function foo is placed into an RO section named new_section rather than .text.
foo
new_section
.text
int foo(void) __attribute__((section ("new_section"))); int foo(void) { return 2; }
Related Knowledgebase Articles
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.