wdenk | 8b07a11 | 2004-07-10 21:45:47 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2002,2003,Motorola,Inc. |
| 3 | * Xianghua Xiao, X.Xiao@motorola.com. |
| 4 | * |
| 5 | * (C) Copyright 2004 Wind River Systems Inc <www.windriver.com>. |
| 6 | * Added support for Wind River SBC8560 board |
| 7 | * |
| 8 | * See file CREDITS for list of people who contributed to this |
| 9 | * project. |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or |
| 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of |
| 14 | * the License, or (at your option) any later version. |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with this program; if not, write to the Free Software |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 24 | * MA 02111-1307 USA |
| 25 | */ |
| 26 | |
| 27 | OUTPUT_ARCH(powerpc) |
| 28 | SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib); |
| 29 | /* Do we need any of these for elf? |
| 30 | __DYNAMIC = 0; */ |
| 31 | SECTIONS |
| 32 | { |
| 33 | .resetvec 0xFFFFFFFC : |
| 34 | { |
| 35 | *(.resetvec) |
| 36 | } = 0xffff |
| 37 | |
| 38 | .bootpg 0xFFFFF000 : |
| 39 | { |
| 40 | cpu/mpc85xx/start.o (.bootpg) |
| 41 | board/sbc8560/init.o (.bootpg) |
| 42 | } = 0xffff |
| 43 | |
| 44 | /* Read-only sections, merged into text segment: */ |
| 45 | . = + SIZEOF_HEADERS; |
| 46 | .interp : { *(.interp) } |
| 47 | .hash : { *(.hash) } |
| 48 | .dynsym : { *(.dynsym) } |
| 49 | .dynstr : { *(.dynstr) } |
| 50 | .rel.text : { *(.rel.text) } |
| 51 | .rela.text : { *(.rela.text) } |
| 52 | .rel.data : { *(.rel.data) } |
| 53 | .rela.data : { *(.rela.data) } |
| 54 | .rel.rodata : { *(.rel.rodata) } |
| 55 | .rela.rodata : { *(.rela.rodata) } |
| 56 | .rel.got : { *(.rel.got) } |
| 57 | .rela.got : { *(.rela.got) } |
| 58 | .rel.ctors : { *(.rel.ctors) } |
| 59 | .rela.ctors : { *(.rela.ctors) } |
| 60 | .rel.dtors : { *(.rel.dtors) } |
| 61 | .rela.dtors : { *(.rela.dtors) } |
| 62 | .rel.bss : { *(.rel.bss) } |
| 63 | .rela.bss : { *(.rela.bss) } |
| 64 | .rel.plt : { *(.rel.plt) } |
| 65 | .rela.plt : { *(.rela.plt) } |
| 66 | .init : { *(.init) } |
| 67 | .plt : { *(.plt) } |
| 68 | .text : |
| 69 | { |
| 70 | cpu/mpc85xx/start.o (.text) |
| 71 | board/sbc8560/init.o (.text) |
| 72 | cpu/mpc85xx/commproc.o (.text) |
| 73 | cpu/mpc85xx/traps.o (.text) |
| 74 | cpu/mpc85xx/interrupts.o (.text) |
| 75 | cpu/mpc85xx/serial_scc.o (.text) |
| 76 | cpu/mpc85xx/ether_fcc.o (.text) |
| 77 | cpu/mpc85xx/cpu_init.o (.text) |
| 78 | cpu/mpc85xx/cpu.o (.text) |
| 79 | cpu/mpc85xx/speed.o (.text) |
wdenk | 8b07a11 | 2004-07-10 21:45:47 +0000 | [diff] [blame] | 80 | cpu/mpc85xx/spd_sdram.o (.text) |
| 81 | common/dlmalloc.o (.text) |
| 82 | lib_generic/crc32.o (.text) |
| 83 | lib_ppc/extable.o (.text) |
| 84 | lib_generic/zlib.o (.text) |
| 85 | *(.text) |
| 86 | *(.fixup) |
| 87 | *(.got1) |
| 88 | } |
| 89 | _etext = .; |
| 90 | PROVIDE (etext = .); |
| 91 | .rodata : |
| 92 | { |
| 93 | *(.rodata) |
| 94 | *(.rodata1) |
| 95 | *(.rodata.str1.4) |
Wolfgang Denk | 7481266 | 2005-12-12 16:06:05 +0100 | [diff] [blame] | 96 | *(.eh_frame) |
wdenk | 8b07a11 | 2004-07-10 21:45:47 +0000 | [diff] [blame] | 97 | } |
| 98 | .fini : { *(.fini) } =0 |
| 99 | .ctors : { *(.ctors) } |
| 100 | .dtors : { *(.dtors) } |
| 101 | |
| 102 | /* Read-write section, merged into data segment: */ |
| 103 | . = (. + 0x00FF) & 0xFFFFFF00; |
| 104 | _erotext = .; |
| 105 | PROVIDE (erotext = .); |
| 106 | .reloc : |
| 107 | { |
| 108 | *(.got) |
| 109 | _GOT2_TABLE_ = .; |
| 110 | *(.got2) |
| 111 | _FIXUP_TABLE_ = .; |
| 112 | *(.fixup) |
| 113 | } |
| 114 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2; |
| 115 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; |
| 116 | |
| 117 | .data : |
| 118 | { |
| 119 | *(.data) |
| 120 | *(.data1) |
| 121 | *(.sdata) |
| 122 | *(.sdata2) |
| 123 | *(.dynamic) |
| 124 | CONSTRUCTORS |
| 125 | } |
| 126 | _edata = .; |
| 127 | PROVIDE (edata = .); |
| 128 | |
Wolfgang Denk | 807d5d7 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 129 | . = .; |
wdenk | 8b07a11 | 2004-07-10 21:45:47 +0000 | [diff] [blame] | 130 | __u_boot_cmd_start = .; |
| 131 | .u_boot_cmd : { *(.u_boot_cmd) } |
| 132 | __u_boot_cmd_end = .; |
| 133 | |
Wolfgang Denk | 807d5d7 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 134 | . = .; |
wdenk | 8b07a11 | 2004-07-10 21:45:47 +0000 | [diff] [blame] | 135 | __start___ex_table = .; |
| 136 | __ex_table : { *(__ex_table) } |
| 137 | __stop___ex_table = .; |
| 138 | |
| 139 | . = ALIGN(256); |
| 140 | __init_begin = .; |
| 141 | .text.init : { *(.text.init) } |
| 142 | .data.init : { *(.data.init) } |
| 143 | . = ALIGN(256); |
| 144 | __init_end = .; |
| 145 | |
| 146 | __bss_start = .; |
| 147 | .bss : |
| 148 | { |
| 149 | *(.sbss) *(.scommon) |
| 150 | *(.dynbss) |
| 151 | *(.bss) |
| 152 | *(COMMON) |
| 153 | } |
| 154 | _end = . ; |
| 155 | PROVIDE (end = .); |
| 156 | } |