The SECTIONS directive defines a address, an order,
or a storage address and execution address for the
specified section(s). Specified sections are located
sequentially in memory. The first section is located at the lowest
possible address (usually 0000h or the value specified by the
CLASSES or GROUPS directive). Subsequent sections are
located in ascending address order.
You may define the starting address of one or all sections.
If an address is specified the section is located at that memory
address. A warning message is issued if sections overlap.
You may specify the execution address (address) and a
storage address (storage) for a section. This allows you to
create applications with sections that are stored in one place but
executed from another. This may be used to create FLASH programming
routines that execute from RAM but are stored in FLASH. When storing
a section in a different location from where it executes, your
application must copy the section to its execution address before it
is invoked.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.