Ron Madrid | 9ff89b7 | 2009-01-22 15:05:24 -0800 | [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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Ron Madrid | 9ff89b7 | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | OUTPUT_ARCH(powerpc) |
| 11 | SECTIONS |
| 12 | { |
| 13 | . = 0xfff00000; |
| 14 | .text : { |
| 15 | *(.text*) |
| 16 | . = ALIGN(16); |
Ron Madrid | 9ff89b7 | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 17 | *(.eh_frame) |
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 18 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Ron Madrid | 9ff89b7 | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | . = ALIGN(8); |
| 22 | .data : { |
| 23 | *(.data*) |
| 24 | *(.sdata*) |
| 25 | _GOT2_TABLE_ = .; |
| 26 | *(.got2) |
Joakim Tjernlund | 459f08d | 2010-12-03 17:30:38 +0100 | [diff] [blame] | 27 | KEEP(*(.got)) |
| 28 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); |
Ron Madrid | 9ff89b7 | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 29 | } |
Joakim Tjernlund | 459f08d | 2010-12-03 17:30:38 +0100 | [diff] [blame] | 30 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
Ron Madrid | 9ff89b7 | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 31 | |
| 32 | . = ALIGN(8); |
| 33 | __bss_start = .; |
| 34 | .bss (NOLOAD) : { *(.*bss) } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 35 | __bss_end = .; |
Ron Madrid | 9ff89b7 | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 36 | } |
| 37 | ENTRY(_start) |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 38 | ASSERT(__bss_end <= 0xfff01000, "NAND bootstrap too big"); |