Scott Wood | 06f60ae | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2006 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
| 5 | * Copyright 2008 Freescale Semiconductor, Inc. |
| 6 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Scott Wood | 06f60ae | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | OUTPUT_ARCH(powerpc) |
| 11 | SECTIONS |
| 12 | { |
| 13 | . = 0xfff00000; |
| 14 | .text : { |
| 15 | *(.text*) |
| 16 | . = ALIGN(16); |
| 17 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
| 18 | } |
| 19 | |
| 20 | . = ALIGN(8); |
| 21 | .data : { |
| 22 | *(.data*) |
| 23 | *(.sdata*) |
| 24 | _GOT2_TABLE_ = .; |
| 25 | KEEP(*(.got2)) |
| 26 | KEEP(*(.got)) |
Scott Wood | 06f60ae | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 27 | } |
| 28 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
| 29 | |
| 30 | . = ALIGN(8); |
| 31 | __bss_start = .; |
| 32 | .bss (NOLOAD) : { |
| 33 | *(.*bss) |
| 34 | } |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 35 | __bss_end = .; |
Scott Wood | 06f60ae | 2012-12-06 13:33:17 +0000 | [diff] [blame] | 36 | } |
| 37 | ENTRY(_start) |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 38 | ASSERT(__bss_end <= 0xfff01000, "NAND bootstrap too big"); |