Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
Xing Zheng | 93280b7 | 2016-10-26 21:25:26 +0800 | [diff] [blame] | 7 | #include <m0_param.h> |
| 8 | |
Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 9 | OUTPUT_FORMAT("elf32-littlearm") |
| 10 | |
| 11 | SECTIONS { |
| 12 | .m0_bin 0 : { |
| 13 | KEEP(*(.isr_vector)) |
| 14 | ASSERT(. == 0xc0, "ISR vector has the wrong size."); |
Xing Zheng | 93280b7 | 2016-10-26 21:25:26 +0800 | [diff] [blame] | 15 | ASSERT(. == PARAM_ADDR, "M0 params should go right behind ISR table."); |
| 16 | . += PARAM_M0_SIZE; |
Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 17 | *(.text*) |
| 18 | *(.rodata*) |
| 19 | *(.data*) |
| 20 | *(.bss*) |
| 21 | . = ALIGN(8); |
| 22 | *(.co_stack*) |
| 23 | } |
| 24 | |
| 25 | /DISCARD/ : { *(.comment) *(.note*) } |
| 26 | } |