1/* 2 * Copyright (c) 2019 Foundries.io Ltd 3 * Copyright (c) 2019 Nordic Semiconductor ASA 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8/* 9 * Respect for CONFIG_ROM_START_OFFSET is mandatory 10 * for MCUboot support, so .reset.* and .exception.* 11 * must come after that offset from ROM_BASE. 12 */ 13 14#ifdef CONFIG_BOOTLOADER_MCUBOOT 15 /* 16 * For CONFIG_BOOTLOADER_MCUBOOT, the vector table is located at the 17 * end of the image header of the MCUboot. After the tagert image is 18 * boot, the register Machine Trap-Vector Base Address (MTVEC) is 19 * set with the value of _vector_start in the reset handler. 20 */ 21 _vector_start = .; 22 KEEP(*(.vectors.*)) 23 _vector_end = .; 24 . = ALIGN(4); 25#endif 26 27KEEP(*(.reset.*)) 28KEEP(*(".exception.entry.*")) /* contains __irq_wrapper */ 29*(".exception.other.*") 30 31KEEP(*(.openocd_debug)) 32KEEP(*(".openocd_debug.*")) 33