blob: 856d3b3e163a4f3336eceed8b567f4cdcf22e037 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Scott Wood2b36fbb2012-12-06 13:33:17 +00002/*
3 * (C) Copyright 2006
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 *
6 * Copyright 2008 Freescale Semiconductor, Inc.
Scott Wood2b36fbb2012-12-06 13:33:17 +00007 */
8
9OUTPUT_ARCH(powerpc)
10SECTIONS
11{
12 . = 0xfff00000;
13 .text : {
14 *(.text*)
15 . = ALIGN(16);
16 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
17 }
18
19 . = ALIGN(8);
20 .data : {
21 *(.data*)
22 *(.sdata*)
23 _GOT2_TABLE_ = .;
24 KEEP(*(.got2))
25 KEEP(*(.got))
Scott Wood2b36fbb2012-12-06 13:33:17 +000026 }
27 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
28
29 . = ALIGN(8);
30 __bss_start = .;
31 .bss (NOLOAD) : {
32 *(.*bss)
33 }
Simon Glassed70c8f2013-03-14 06:54:53 +000034 __bss_end = .;
Scott Wood2b36fbb2012-12-06 13:33:17 +000035}
36ENTRY(_start)
Simon Glassed70c8f2013-03-14 06:54:53 +000037ASSERT(__bss_end <= 0xfff01000, "NAND bootstrap too big");