wdenk | ef5fe75 | 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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 15 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 16 | ** |
| 17 | **===================================================================== |
| 18 | */ |
| 19 | |
| 20 | OUTPUT_ARCH(powerpc) |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 21 | |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 22 | SECTIONS |
| 23 | { |
| 24 | /* Read-only sections, merged into text segment: */ |
| 25 | . = + SIZEOF_HEADERS; |
wdenk | ef5fe75 | 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 | e71d99d | 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 | 30a198b | 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 | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 37 | |
| 38 | . = env_offset; |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 39 | common/env_embedded.o (.text*) |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 40 | |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 41 | *(.text*) |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 42 | } |
| 43 | _etext = .; |
| 44 | PROVIDE (etext = .); |
| 45 | .rodata : |
| 46 | { |
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 47 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 48 | } |
wdenk | ef5fe75 | 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 | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 56 | _GOT2_TABLE_ = .; |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 57 | KEEP(*(.got2)) |
Joakim Tjernlund | a65f8c8 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 58 | KEEP(*(.got)) |
| 59 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 60 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 61 | KEEP(*(.fixup)) |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 62 | } |
Joakim Tjernlund | a65f8c8 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 63 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 64 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
| 65 | |
| 66 | .data : |
| 67 | { |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 68 | *(.data*) |
| 69 | *(.sdata*) |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 70 | } |
| 71 | _edata = .; |
| 72 | PROVIDE (edata = .); |
| 73 | |
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 74 | . = .; |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 75 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 76 | . = ALIGN(4); |
| 77 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 78 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 79 | } |
| 80 | |
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 81 | . = .; |
wdenk | ef5fe75 | 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 | 828a978 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 94 | .bss (NOLOAD) : |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 95 | { |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 96 | *(.bss*) |
| 97 | *(.sbss*) |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 98 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 99 | . = ALIGN(4); |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 100 | } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 101 | __bss_end = . ; |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 102 | PROVIDE (end = .); |
| 103 | } |