blob: 4e4d511f9be0cde58c9fd2fd9007d23c130b2572 [file] [log] [blame]
Ron Madrid9ff89b72009-01-22 15:05:24 -08001/*
2 * (C) Copyright 2006
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * Copyright 2008 Freescale Semiconductor, Inc.
6 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Ron Madrid9ff89b72009-01-22 15:05:24 -08008 */
9
10OUTPUT_ARCH(powerpc)
11SECTIONS
12{
13 . = 0xfff00000;
14 .text : {
15 *(.text*)
16 . = ALIGN(16);
Ron Madrid9ff89b72009-01-22 15:05:24 -080017 *(.eh_frame)
Trent Piepho4438e5e2009-02-18 15:22:05 -080018 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Ron Madrid9ff89b72009-01-22 15:05:24 -080019 }
20
21 . = ALIGN(8);
22 .data : {
23 *(.data*)
24 *(.sdata*)
25 _GOT2_TABLE_ = .;
26 *(.got2)
Joakim Tjernlund459f08d2010-12-03 17:30:38 +010027 KEEP(*(.got))
28 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
Ron Madrid9ff89b72009-01-22 15:05:24 -080029 }
Joakim Tjernlund459f08d2010-12-03 17:30:38 +010030 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Ron Madrid9ff89b72009-01-22 15:05:24 -080031
32 . = ALIGN(8);
33 __bss_start = .;
34 .bss (NOLOAD) : { *(.*bss) }
Simon Glassed70c8f2013-03-14 06:54:53 +000035 __bss_end = .;
Ron Madrid9ff89b72009-01-22 15:05:24 -080036}
37ENTRY(_start)
Simon Glassed70c8f2013-03-14 06:54:53 +000038ASSERT(__bss_end <= 0xfff01000, "NAND bootstrap too big");