xref: /openbmc/u-boot/arch/powerpc/cpu/mpc83xx/u-boot-spl.lds (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini/* SPDX-License-Identifier: GPL-2.0+ */
206f60ae3SScott Wood/*
306f60ae3SScott Wood * (C) Copyright 2006
406f60ae3SScott Wood * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
506f60ae3SScott Wood *
606f60ae3SScott Wood * Copyright 2008 Freescale Semiconductor, Inc.
706f60ae3SScott Wood */
806f60ae3SScott Wood
906f60ae3SScott WoodOUTPUT_ARCH(powerpc)
1006f60ae3SScott WoodSECTIONS
1106f60ae3SScott Wood{
1206f60ae3SScott Wood	. = 0xfff00000;
1306f60ae3SScott Wood	.text : {
1406f60ae3SScott Wood		*(.text*)
1506f60ae3SScott Wood		. = ALIGN(16);
1606f60ae3SScott Wood		*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
1706f60ae3SScott Wood	}
1806f60ae3SScott Wood
1906f60ae3SScott Wood	. = ALIGN(8);
2006f60ae3SScott Wood	.data : {
2106f60ae3SScott Wood		*(.data*)
2206f60ae3SScott Wood		*(.sdata*)
2306f60ae3SScott Wood		_GOT2_TABLE_ = .;
2406f60ae3SScott Wood		KEEP(*(.got2))
2506f60ae3SScott Wood		KEEP(*(.got))
2606f60ae3SScott Wood	}
2706f60ae3SScott Wood	__got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
2806f60ae3SScott Wood
2906f60ae3SScott Wood	. = ALIGN(8);
3006f60ae3SScott Wood	__bss_start = .;
3106f60ae3SScott Wood	.bss (NOLOAD) : {
3206f60ae3SScott Wood		*(.*bss)
3306f60ae3SScott Wood	}
343929fb0aSSimon Glass	__bss_end = .;
3506f60ae3SScott Wood}
3606f60ae3SScott WoodENTRY(_start)
373929fb0aSSimon GlassASSERT(__bss_end <= 0xfff01000, "NAND bootstrap too big");
38