Wolfgang Denk | e2c2a95 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2010 Wolfgang Denk <wd@denx.de> |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | e2c2a95 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | OUTPUT_ARCH(powerpc) |
| 8 | |
| 9 | SECTIONS |
| 10 | { |
| 11 | .text : |
| 12 | { |
| 13 | arch/powerpc/cpu/74xx_7xx/start.o (.text*) |
| 14 | |
| 15 | *(.text*) |
| 16 | } |
| 17 | _etext = .; |
| 18 | PROVIDE (etext = .); |
| 19 | .rodata : |
| 20 | { |
| 21 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
| 22 | } |
| 23 | |
| 24 | /* Read-write section, merged into data segment: */ |
| 25 | . = (. + 0x00FF) & 0xFFFFFF00; |
| 26 | _erotext = .; |
| 27 | PROVIDE (erotext = .); |
| 28 | .reloc : |
| 29 | { |
Wolfgang Denk | e2c2a95 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 30 | _GOT2_TABLE_ = .; |
| 31 | KEEP(*(.got2)) |
Joakim Tjernlund | 337f5f5 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 32 | KEEP(*(.got)) |
| 33 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); |
Wolfgang Denk | e2c2a95 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 34 | _FIXUP_TABLE_ = .; |
| 35 | KEEP(*(.fixup)) |
| 36 | } |
Joakim Tjernlund | 337f5f5 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 37 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
Wolfgang Denk | e2c2a95 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 38 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
| 39 | |
| 40 | .data : |
| 41 | { |
| 42 | *(.data*) |
| 43 | *(.sdata*) |
| 44 | } |
| 45 | _edata = .; |
| 46 | PROVIDE (edata = .); |
| 47 | |
| 48 | . = .; |
Wolfgang Denk | e2c2a95 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 49 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 50 | . = ALIGN(4); |
| 51 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 52 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 53 | } |
| 54 | |
Wolfgang Denk | e2c2a95 | 2010-11-25 12:14:07 +0100 | [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 | { |
| 71 | *(.bss*) |
| 72 | *(.sbss*) |
| 73 | *(COMMON) |
| 74 | . = ALIGN(4); |
| 75 | } |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 76 | __bss_end = . ; |
Wolfgang Denk | e2c2a95 | 2010-11-25 12:14:07 +0100 | [diff] [blame] | 77 | PROVIDE (end = .); |
| 78 | } |