You can make sure that a section is placed either first or last in its execution region. For example, you might want to make sure the section containing the vector table is placed first in the image. To do this, use one of the following methods:
If you are not using scatter-loading, use the
--lastlinker command-line options to place input sections.
If you are using scatter-loading, use the attributes
LASTin the file to mark the first and last input sections in an execution region if the placement order is important.
LASTmust not violate the basic attribute sorting order. For example,
FIRST RWis placed after any read-only code or read-only data.