Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Stefan Roese, DENX Software Engineering, sr@denx.de. |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | OUTPUT_ARCH(powerpc) |
| 9 | SECTIONS |
| 10 | { |
| 11 | /* Read-only sections, merged into text segment: */ |
| 12 | . = + SIZEOF_HEADERS; |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 13 | .text : |
| 14 | { |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 15 | arch/powerpc/cpu/ppc4xx/start.o (.text*) |
| 16 | board/amcc/sequoia/init.o (.text*) |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 17 | |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 18 | *(.text*) |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 19 | } |
| 20 | _etext = .; |
| 21 | PROVIDE (etext = .); |
| 22 | .rodata : |
| 23 | { |
| 24 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
| 25 | } |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 26 | |
| 27 | /* Read-write section, merged into data segment: */ |
| 28 | . = (. + 0x00FF) & 0xFFFFFF00; |
| 29 | _erotext = .; |
| 30 | PROVIDE (erotext = .); |
| 31 | .reloc : |
| 32 | { |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 33 | KEEP(*(.got)) |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 34 | _GOT2_TABLE_ = .; |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 35 | KEEP(*(.got2)) |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 36 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 37 | KEEP(*(.fixup)) |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 38 | } |
| 39 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; |
| 40 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
| 41 | |
| 42 | .data : |
| 43 | { |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 44 | *(.data*) |
| 45 | *(.sdata*) |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 46 | } |
| 47 | _edata = .; |
| 48 | PROVIDE (edata = .); |
| 49 | |
| 50 | . = .; |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 51 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 52 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 53 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 54 | } |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 55 | |
| 56 | . = .; |
| 57 | __start___ex_table = .; |
| 58 | __ex_table : { *(__ex_table) } |
| 59 | __stop___ex_table = .; |
| 60 | |
| 61 | . = ALIGN(256); |
| 62 | __init_begin = .; |
| 63 | .text.init : { *(.text.init) } |
| 64 | .data.init : { *(.data.init) } |
| 65 | . = ALIGN(256); |
| 66 | __init_end = .; |
| 67 | |
| 68 | __bss_start = .; |
| 69 | .bss (NOLOAD) : |
| 70 | { |
Wolfgang Denk | fe33e6e | 2010-11-21 20:55:42 +0100 | [diff] [blame] | 71 | *(.bss*) |
| 72 | *(.sbss*) |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 73 | *(COMMON) |
| 74 | . = ALIGN(4); |
| 75 | } |
| 76 | |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 77 | __bss_end = . ; |
Stefan Roese | c20ef32 | 2009-05-11 13:46:14 +0200 | [diff] [blame] | 78 | PROVIDE (end = .); |
| 79 | } |