From e8d8ea74032cca7a69939af91dbef65bc352b60e Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Tue, 27 Nov 2018 10:19:27 +0100 Subject: MIPS: add arch/mips/lib/pbl.lds.S we need it for multiimage support. Signed-off-by: Oleksij Rempel Signed-off-by: Sascha Hauer --- arch/mips/lib/pbl.lds.S | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 arch/mips/lib/pbl.lds.S (limited to 'arch/mips') 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 , Pengutronix + * (C) Copyright 2012 Sascha Hauer , Pengutronix + */ + +#include +#include + +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 = .; +} -- cgit v1.2.3