wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 1 | /* |
| 2 | **===================================================================== |
| 3 | ** |
| 4 | ** Copyright (C) 2000, 2001, 2002, 2003 |
| 5 | ** The LEOX team <team@leox.org>, http://www.leox.org |
| 6 | ** |
| 7 | ** LEOX.org is about the development of free hardware and software resources |
| 8 | ** for system on chip. |
| 9 | ** |
| 10 | ** Description: U-Boot port on the LEOX's ELPT860 CPU board |
| 11 | ** ~~~~~~~~~~~ |
| 12 | ** |
| 13 | **===================================================================== |
| 14 | ** |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 15 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 16 | ** |
| 17 | **===================================================================== |
| 18 | */ |
| 19 | |
| 20 | OUTPUT_ARCH(powerpc) |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 21 | |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 22 | SECTIONS |
| 23 | { |
| 24 | /* Read-only sections, merged into text segment: */ |
| 25 | . = + SIZEOF_HEADERS; |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 26 | .text : |
| 27 | { |
| 28 | /* WARNING - the following is hand-optimized to fit within */ |
| 29 | /* the sector layout of our flash chips! XXX FIXME XXX */ |
| 30 | |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 31 | arch/powerpc/cpu/mpc8xx/start.o (.text*) |
| 32 | arch/powerpc/cpu/mpc8xx/traps.o (.text*) |
Masahiro Yamada | e2906a5 | 2013-11-11 14:36:00 +0900 | [diff] [blame] | 33 | common/built-in.o (.text*) |
| 34 | arch/powerpc/cpu/mpc8xx/built-in.o (.text*) |
| 35 | board/LEOX/elpt860/built-in.o (.text*) |
| 36 | arch/powerpc/lib/built-in.o (.text*) |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 37 | |
| 38 | . = env_offset; |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 39 | common/env_embedded.o (.text*) |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 40 | |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 41 | *(.text*) |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 42 | } |
| 43 | _etext = .; |
| 44 | PROVIDE (etext = .); |
| 45 | .rodata : |
| 46 | { |
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 47 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 48 | } |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 49 | |
| 50 | /* Read-write section, merged into data segment: */ |
| 51 | . = (. + 0x00FF) & 0xFFFFFF00; |
| 52 | _erotext = .; |
| 53 | PROVIDE (erotext = .); |
| 54 | .reloc : |
| 55 | { |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 56 | _GOT2_TABLE_ = .; |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 57 | KEEP(*(.got2)) |
Joakim Tjernlund | 9d8fbd1 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 58 | KEEP(*(.got)) |
| 59 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 60 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 61 | KEEP(*(.fixup)) |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 62 | } |
Joakim Tjernlund | 9d8fbd1 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 63 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 64 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
| 65 | |
| 66 | .data : |
| 67 | { |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 68 | *(.data*) |
| 69 | *(.sdata*) |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 70 | } |
| 71 | _edata = .; |
| 72 | PROVIDE (edata = .); |
| 73 | |
Wolfgang Denk | 807d5d7 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 74 | . = .; |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 75 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 76 | . = ALIGN(4); |
| 77 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 78 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 79 | } |
| 80 | |
Wolfgang Denk | 807d5d7 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 81 | . = .; |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 82 | __start___ex_table = .; |
| 83 | __ex_table : { *(__ex_table) } |
| 84 | __stop___ex_table = .; |
| 85 | |
| 86 | . = ALIGN(256); |
| 87 | __init_begin = .; |
| 88 | .text.init : { *(.text.init) } |
| 89 | .data.init : { *(.data.init) } |
| 90 | . = ALIGN(256); |
| 91 | __init_end = .; |
| 92 | |
| 93 | __bss_start = .; |
Wolfgang Denk | 64134f0 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 94 | .bss (NOLOAD) : |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 95 | { |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 96 | *(.bss*) |
| 97 | *(.sbss*) |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 98 | *(COMMON) |
Selvamuthukumar | 9b827cf | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 99 | . = ALIGN(4); |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 100 | } |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 101 | __bss_end = . ; |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 102 | PROVIDE (end = .); |
| 103 | } |