rk3399m0.ld.S 509 Bytes
Newer Older
1
2
3
/*
 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
 */

7
8
#include <m0_param.h>

9
10
11
12
13
14
OUTPUT_FORMAT("elf32-littlearm")

SECTIONS {
	.m0_bin 0 : {
		KEEP(*(.isr_vector))
		ASSERT(. == 0xc0, "ISR vector has the wrong size.");
15
16
		ASSERT(. == PARAM_ADDR, "M0 params should go right behind ISR table.");
		. += PARAM_M0_SIZE;
17
18
19
20
21
22
23
24
25
26
		*(.text*)
		*(.rodata*)
		*(.data*)
		*(.bss*)
		. = ALIGN(8);
		*(.co_stack*)
	}

	/DISCARD/ : { *(.comment) *(.note*) }
}