Simon Glass | 00cca63 | 2015-02-07 11:51:38 -0700 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Stefan Roese, DENX Software Engineering, sr@denx.de. |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0+ |
| 6 | */ |
| 7 | |
| 8 | OUTPUT_ARCH(powerpc) |
| 9 | SECTIONS |
| 10 | { |
| 11 | /* Read-only sections, merged into text segment: */ |
| 12 | . = + SIZEOF_HEADERS; |
| 13 | .text : |
| 14 | { |
Simon Glass | 4330174 | 2015-02-07 11:51:45 -0700 | [diff] [blame^] | 15 | _image_copy_start = .; |
Simon Glass | 00cca63 | 2015-02-07 11:51:38 -0700 | [diff] [blame] | 16 | arch/powerpc/cpu/ppc4xx/start.o (.text*) |
| 17 | board/amcc/canyonlands/init.o (.text*) |
| 18 | |
| 19 | *(.text*) |
| 20 | } |
| 21 | _etext = .; |
| 22 | PROVIDE (etext = .); |
| 23 | .rodata : |
| 24 | { |
| 25 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
| 26 | } |
| 27 | |
| 28 | /* Read-write section, merged into data segment: */ |
| 29 | . = (. + 0x00FF) & 0xFFFFFF00; |
| 30 | _erotext = .; |
| 31 | PROVIDE (erotext = .); |
| 32 | .reloc : |
| 33 | { |
| 34 | KEEP(*(.got)) |
| 35 | _GOT2_TABLE_ = .; |
| 36 | KEEP(*(.got2)) |
| 37 | _FIXUP_TABLE_ = .; |
| 38 | KEEP(*(.fixup)) |
| 39 | } |
| 40 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; |
| 41 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
| 42 | |
| 43 | .data : |
| 44 | { |
| 45 | *(.data*) |
| 46 | *(.sdata*) |
| 47 | } |
| 48 | _edata = .; |
| 49 | PROVIDE (edata = .); |
| 50 | |
| 51 | . = .; |
| 52 | |
| 53 | .u_boot_list : { |
| 54 | KEEP(*(SORT(.u_boot_list*))); |
| 55 | } |
| 56 | |
| 57 | . = .; |
| 58 | __start___ex_table = .; |
| 59 | __ex_table : { *(__ex_table) } |
| 60 | __stop___ex_table = .; |
| 61 | |
| 62 | . = ALIGN(256); |
| 63 | __init_begin = .; |
| 64 | .text.init : { *(.text.init) } |
Simon Glass | 4330174 | 2015-02-07 11:51:45 -0700 | [diff] [blame^] | 65 | .data.init : { |
| 66 | *(.data.init) |
| 67 | . = ALIGN(256); |
| 68 | LONG(0) LONG(0) /* Extend u-boot.bin to here */ |
| 69 | } |
Simon Glass | 00cca63 | 2015-02-07 11:51:38 -0700 | [diff] [blame] | 70 | __init_end = .; |
Simon Glass | 4330174 | 2015-02-07 11:51:45 -0700 | [diff] [blame^] | 71 | _end = .; |
| 72 | _image_binary_end = .; |
Simon Glass | 00cca63 | 2015-02-07 11:51:38 -0700 | [diff] [blame] | 73 | |
| 74 | __bss_start = .; |
| 75 | .bss (NOLOAD) : |
| 76 | { |
| 77 | *(.bss*) |
| 78 | *(.sbss*) |
| 79 | *(COMMON) |
| 80 | . = ALIGN(4); |
| 81 | } |
| 82 | |
| 83 | __bss_end = . ; |
| 84 | PROVIDE (end = .); |
| 85 | } |