diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2018-11-27 10:19:27 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-12-13 08:09:13 +0100 |
commit | e8d8ea74032cca7a69939af91dbef65bc352b60e (patch) | |
tree | 89dbd15937130e30facf44bc0d2e4279bf8cd66d /arch | |
parent | 6c63d7ac806a35731bd9b8670d9f5a546188c4fd (diff) | |
download | barebox-e8d8ea74032cca7a69939af91dbef65bc352b60e.tar.gz barebox-e8d8ea74032cca7a69939af91dbef65bc352b60e.tar.xz |
MIPS: add arch/mips/lib/pbl.lds.S
we need it for multiimage support.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/lib/pbl.lds.S | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/arch/mips/lib/pbl.lds.S b/arch/mips/lib/pbl.lds.S new file mode 100644 index 0000000000..7ca9ae151f --- /dev/null +++ b/arch/mips/lib/pbl.lds.S @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2018 Oleksij Rempel <o.rempel@pengutronix.de>, Pengutronix + * (C) Copyright 2012 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix + */ + +#include <asm-generic/barebox.lds.h> +#include <asm-generic/memory_layout.h> + +OUTPUT_ARCH("mips") +SECTIONS +{ + . = HEAD_TEXT_BASE; + + PRE_IMAGE + + . = ALIGN(4); + .text : + { + _stext = .; + _text = .; + *(.text_head_entry*) + __bare_init_start = .; + *(.text_bare_init*) + __bare_init_end = .; + *(.text*) + } + + BAREBOX_BARE_INIT_SIZE + + . = ALIGN(4); + .rodata : { *(.rodata*) } + + .barebox_imd : { BAREBOX_IMD } + + _etext = .; /* End of text and rodata section */ + + . = ALIGN(4); + .data : { *(.data*) } + + . = ALIGN(4); + __piggydata_start = .; + .piggydata : { + *(.piggydata) + } + __piggydata_end = .; + + . = ALIGN(4); + __bss_start = .; + .bss : { *(.bss*) } + __bss_stop = .; + _end = .; +} |