Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Scott Wood | 2b36fbb | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2006 |
| 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 5 | * |
| 6 | * Copyright 2008 Freescale Semiconductor, Inc. |
Scott Wood | 2b36fbb | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | OUTPUT_ARCH(powerpc) |
| 10 | SECTIONS |
| 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 Wood | 2b36fbb | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 26 | } |
| 27 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
| 28 | |
| 29 | . = ALIGN(8); |
| 30 | __bss_start = .; |
| 31 | .bss (NOLOAD) : { |
| 32 | *(.*bss) |
| 33 | } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 34 | __bss_end = .; |
Scott Wood | 2b36fbb | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 35 | } |
| 36 | ENTRY(_start) |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 37 | ASSERT(__bss_end <= 0xfff01000, "NAND bootstrap too big"); |