xref: /openbmc/u-boot/board/cssi/MCR3000/u-boot.lds (revision 9450ab2b)
183d290c5STom Rini/* SPDX-License-Identifier: GPL-2.0+ */
253193a4fSChristophe Leroy/*
353193a4fSChristophe Leroy * Copyright (C) 2010-2017 CS Systemes d'Information
453193a4fSChristophe Leroy * Christophe Leroy <christophe.leroy@c-s.fr>
553193a4fSChristophe Leroy *
653193a4fSChristophe Leroy * (C) Copyright 2001-2003
753193a4fSChristophe Leroy * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
853193a4fSChristophe Leroy *
953193a4fSChristophe Leroy * Modified by Yuli Barcohen <yuli@arabellasw.com>
1053193a4fSChristophe Leroy */
1153193a4fSChristophe Leroy
1253193a4fSChristophe LeroyOUTPUT_ARCH(powerpc)
1353193a4fSChristophe LeroySECTIONS
1453193a4fSChristophe Leroy{
1553193a4fSChristophe Leroy	/* Read-only sections, merged into text segment: */
1653193a4fSChristophe Leroy	. = + SIZEOF_HEADERS;
1753193a4fSChristophe Leroy	.text          :
1853193a4fSChristophe Leroy	{
1953193a4fSChristophe Leroy		arch/powerpc/cpu/mpc8xx/start.o	(.text)
2053193a4fSChristophe Leroy		arch/powerpc/cpu/mpc8xx/traps.o	(.text*)
2153193a4fSChristophe Leroy		arch/powerpc/lib/built-in.o		(.text*)
2253193a4fSChristophe Leroy		drivers/net/built-in.o		(.text*)
2353193a4fSChristophe Leroy
240fb62205SChristophe Leroy		. = DEFINED(env_offset) ? env_offset : .;
250fb62205SChristophe Leroy		env/embedded.o			(.text.environment)
260fb62205SChristophe Leroy
2753193a4fSChristophe Leroy		*(.text)
2853193a4fSChristophe Leroy	}
2953193a4fSChristophe Leroy	_etext = .;
3053193a4fSChristophe Leroy	PROVIDE (etext = .);
3153193a4fSChristophe Leroy	.rodata    :
3253193a4fSChristophe Leroy	{
3353193a4fSChristophe Leroy		*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
3453193a4fSChristophe Leroy	}
3553193a4fSChristophe Leroy
3653193a4fSChristophe Leroy	/* Read-write section, merged into data segment: */
3753193a4fSChristophe Leroy	. = (. + 0x0FFF) & 0xFFFFF000;
3853193a4fSChristophe Leroy	_erotext = .;
3953193a4fSChristophe Leroy	PROVIDE (erotext = .);
4053193a4fSChristophe Leroy	.reloc   :
4153193a4fSChristophe Leroy	{
4253193a4fSChristophe Leroy		_GOT2_TABLE_ = .;
4353193a4fSChristophe Leroy		KEEP(*(.got2))
4453193a4fSChristophe Leroy		KEEP(*(.got))
4553193a4fSChristophe Leroy		_FIXUP_TABLE_ = .;
4653193a4fSChristophe Leroy		KEEP(*(.fixup))
4753193a4fSChristophe Leroy	}
4853193a4fSChristophe Leroy	__got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
4953193a4fSChristophe Leroy	__fixup_entries = (. - _FIXUP_TABLE_) >> 2;
5053193a4fSChristophe Leroy
5153193a4fSChristophe Leroy	.data    :
5253193a4fSChristophe Leroy	{
5353193a4fSChristophe Leroy		*(.data*)
5453193a4fSChristophe Leroy		*(.sdata*)
5553193a4fSChristophe Leroy	}
5653193a4fSChristophe Leroy	_edata  =  .;
5753193a4fSChristophe Leroy	PROVIDE (edata = .);
5853193a4fSChristophe Leroy
5953193a4fSChristophe Leroy	. = .;
6053193a4fSChristophe Leroy
6153193a4fSChristophe Leroy	. = ALIGN(4);
6253193a4fSChristophe Leroy	.u_boot_list : {
6353193a4fSChristophe Leroy		KEEP(*(SORT(.u_boot_list*)));
6453193a4fSChristophe Leroy	}
6553193a4fSChristophe Leroy
6653193a4fSChristophe Leroy	. = .;
6753193a4fSChristophe Leroy	__start___ex_table = .;
6853193a4fSChristophe Leroy	__ex_table : { *(__ex_table) }
6953193a4fSChristophe Leroy	__stop___ex_table = .;
7053193a4fSChristophe Leroy
71*f55db0afSChristophe Leroy	/*
72*f55db0afSChristophe Leroy	 * _end - This is end of u-boot.bin image.
73*f55db0afSChristophe Leroy	 * dtb will be appended here to make u-boot-dtb.bin
74*f55db0afSChristophe Leroy	 */
75*f55db0afSChristophe Leroy	_end = .;
76*f55db0afSChristophe Leroy
7753193a4fSChristophe Leroy	. = ALIGN(4096);
7853193a4fSChristophe Leroy	__init_begin = .;
7953193a4fSChristophe Leroy	.text.init : { *(.text.init) }
8053193a4fSChristophe Leroy	.data.init : { *(.data.init) }
8153193a4fSChristophe Leroy	. = ALIGN(4096);
8253193a4fSChristophe Leroy	__init_end = .;
8353193a4fSChristophe Leroy
8453193a4fSChristophe Leroy	__bss_start = .;
8553193a4fSChristophe Leroy	.bss (NOLOAD)       :
8653193a4fSChristophe Leroy	{
8753193a4fSChristophe Leroy		*(.bss*)
8853193a4fSChristophe Leroy		*(.sbss*)
8953193a4fSChristophe Leroy		*(COMMON)
9053193a4fSChristophe Leroy		. = ALIGN(4);
9153193a4fSChristophe Leroy	}
9253193a4fSChristophe Leroy	__bss_end = . ;
9353193a4fSChristophe Leroy	PROVIDE (end = .);
9453193a4fSChristophe Leroy}
9553193a4fSChristophe LeroyENTRY(_start)
96