3.2.2. Using FIRST and LAST to place sections
Within a region, all RO code input sections are contiguous and form an RO output section that must precede the output section containing all the RW input sections.
If you are not using scatter‑loading, use the ‑‑first and ‑‑last linker options to place input sections.
If you are using scatter‑loading, use the attributes FIRST and LAST in the scatter‑loading description file to mark the first and last input sections in an execution region if the placement order is important.
However, FIRST and LAST must not violate the basic attribute sorting order as described in Ordering input sections by attribute. For example, FIRST RW is placed after any read-only code or read-only data.