10.3.4.1 Output Section .reset
On PIC32A architectures, section .reset
contains a vector (address) that points to the location of symbol __reset
,
which by convention is the first function invoked after a device reset.
/*
** Reset Vector
*/
.reset :
{
LONG(ABSOLUTE(__reset));
} >reset
The LONG()
data command causes a 4 byte value to be included.
The ABSOLUTE()
function specifies the final value of a program symbol
after linking. If this function were omitted, a relative (before-linking) value of the
program symbol would be used.
The >reset
portion of this definition indicates that this section should
be allocated in the Reset memory region.