blob: bfe054e1f5e72ca6272e1ae5b61de4e7aecdf395 [file] [log] [blame]
Caesar Wangb4003742016-10-12 08:10:12 +08001/*
2 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Caesar Wangb4003742016-10-12 08:10:12 +08005 */
6
Xing Zheng93280b72016-10-26 21:25:26 +08007#include <m0_param.h>
8
Caesar Wangb4003742016-10-12 08:10:12 +08009OUTPUT_FORMAT("elf32-littlearm")
10
11SECTIONS {
12 .m0_bin 0 : {
13 KEEP(*(.isr_vector))
14 ASSERT(. == 0xc0, "ISR vector has the wrong size.");
Xing Zheng93280b72016-10-26 21:25:26 +080015 ASSERT(. == PARAM_ADDR, "M0 params should go right behind ISR table.");
16 . += PARAM_M0_SIZE;
Caesar Wangb4003742016-10-12 08:10:12 +080017 *(.text*)
18 *(.rodata*)
19 *(.data*)
20 *(.bss*)
21 . = ALIGN(8);
22 *(.co_stack*)
23 }
24
25 /DISCARD/ : { *(.comment) *(.note*) }
26}