aboutsummaryrefslogtreecommitdiff
path: root/plat/rockchip/rk3399/drivers/m0/src/rk3399m0.ld.S
blob: bfe054e1f5e72ca6272e1ae5b61de4e7aecdf395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <m0_param.h>

OUTPUT_FORMAT("elf32-littlearm")

SECTIONS {
	.m0_bin 0 : {
		KEEP(*(.isr_vector))
		ASSERT(. == 0xc0, "ISR vector has the wrong size.");
		ASSERT(. == PARAM_ADDR, "M0 params should go right behind ISR table.");
		. += PARAM_M0_SIZE;
		*(.text*)
		*(.rodata*)
		*(.data*)
		*(.bss*)
		. = ALIGN(8);
		*(.co_stack*)
	}

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