/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * (C) Copyright 2018 Oleksij Rempel , Pengutronix * (C) Copyright 2012 Sascha Hauer , Pengutronix */ #include #include #include #define BASE (TEXT_BASE - SZ_2M) OUTPUT_ARCH("mips") SECTIONS { . = 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*) } pbl_code_size = . - BASE; . = ALIGN(4); __piggydata_start = .; .piggydata : { *(.piggydata) } __piggydata_end = . - BASE; pbl_image_size = .; . = ALIGN(4); __bss_start = .; .bss : { *(.bss*) } __bss_stop = .; pbl_memory_size = . - BASE; _end = .; }