Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2001-2007 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | OUTPUT_ARCH(powerpc) |
| 9 | /* Do we need any of these for elf? |
| 10 | __DYNAMIC = 0; */ |
| 11 | SECTIONS |
| 12 | { |
| 13 | /* Read-only sections, merged into text segment: */ |
| 14 | .text : |
| 15 | { |
| 16 | /* WARNING - the following is hand-optimized to fit within */ |
| 17 | /* the sector layout of our flash chips! XXX FIXME XXX */ |
| 18 | |
| 19 | arch/powerpc/cpu/mpc824x/start.o (.text*) |
| 20 | *(.text.v*printf) |
| 21 | |
| 22 | . = DEFINED(env_offset) ? env_offset : .; |
| 23 | common/env_embedded.o (.ppcenv*) |
| 24 | |
| 25 | *(.text*) |
| 26 | . = ALIGN(16); |
| 27 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
| 28 | } |
| 29 | |
| 30 | /* Read-write section, merged into data segment: */ |
| 31 | . = (. + 0x0FFF) & 0xFFFFF000; |
| 32 | _erotext = .; |
| 33 | PROVIDE (erotext = .); |
| 34 | .reloc : |
| 35 | { |
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 36 | _GOT2_TABLE_ = .; |
| 37 | KEEP(*(.got2)) |
Joakim Tjernlund | 9d8fbd1 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 38 | KEEP(*(.got)) |
| 39 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); |
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 40 | _FIXUP_TABLE_ = .; |
| 41 | KEEP(*(.fixup)) |
| 42 | } |
Joakim Tjernlund | 9d8fbd1 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 43 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 44 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; |
| 45 | |
| 46 | .data : |
| 47 | { |
| 48 | *(.data*) |
| 49 | *(.sdata*) |
| 50 | } |
| 51 | _edata = .; |
| 52 | PROVIDE (edata = .); |
| 53 | |
| 54 | . = .; |
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 55 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 56 | . = ALIGN(4); |
| 57 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 58 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 59 | } |
| 60 | |
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 61 | |
| 62 | . = .; |
| 63 | __start___ex_table = .; |
| 64 | __ex_table : { *(__ex_table) } |
| 65 | __stop___ex_table = .; |
| 66 | |
| 67 | . = ALIGN(4096); |
| 68 | __init_begin = .; |
| 69 | .text.init : { *(.text.init) } |
| 70 | .data.init : { *(.data.init) } |
| 71 | . = ALIGN(4096); |
| 72 | __init_end = .; |
| 73 | |
| 74 | __bss_start = .; |
| 75 | .bss (NOLOAD) : |
| 76 | { |
| 77 | *(.bss*) |
| 78 | *(.sbss*) |
| 79 | *(COMMON) |
| 80 | . = ALIGN(4); |
| 81 | } |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 82 | __bss_end = . ; |
Wolfgang Denk | de550d6 | 2010-11-23 23:48:56 +0100 | [diff] [blame] | 83 | PROVIDE (end = .); |
| 84 | } |