From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRD27-0000ex-UF for barebox@lists.infradead.org; Mon, 26 Nov 2018 09:18:30 +0000 From: Oleksij Rempel Date: Mon, 26 Nov 2018 10:17:59 +0100 Message-Id: <20181126091807.19398-3-o.rempel@pengutronix.de> In-Reply-To: <20181126091807.19398-1-o.rempel@pengutronix.de> References: <20181126091807.19398-1-o.rempel@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v1 02/10] MIPS: add arch/mips/lib/pbl.lds.S To: barebox@lists.infradead.org Cc: Oleksij Rempel we need it for multiimage support. Signed-off-by: Oleksij Rempel --- arch/mips/lib/pbl.lds.S | 54 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 arch/mips/lib/pbl.lds.S diff --git a/arch/mips/lib/pbl.lds.S b/arch/mips/lib/pbl.lds.S new file mode 100644 index 0000000000..51dd088d51 --- /dev/null +++ b/arch/mips/lib/pbl.lds.S @@ -0,0 +1,54 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2018 Oleksij Rempel , Pengutronix + * (C) Copyright 2012 Sascha Hauer , Pengutronix + */ + +#include +#include + +OUTPUT_ARCH("mips") +ENTRY(pbl_start) +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 = .; +} -- 2.19.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox