| 1 | /* |
| 2 | * (C) Copyright 2002 |
| 3 | * Gary Jennejohn, DENX Software Engineering, <gj@denx.de> |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 25 | /*OUTPUT_FORMAT("elf32-arm", "elf32-arm", "elf32-arm")*/ |
| 26 | OUTPUT_ARCH(arm) |
| 27 | ENTRY(_start) |
| 28 | SECTIONS |
| 29 | { |
| 30 | . = 0x00000000; |
| 31 | |
| 32 | __system_ram_start = 0x50000000; |
| 33 | __steppingstone = 0x0c000000; |
| 34 | |
| 35 | /* this text section is magically pulled from the SD Card |
| 36 | * and stored by the iRom at 0x0c000000, then it is jumped into |
| 37 | * by the iRom. So we arrange our early parts needed at 0 in the |
| 38 | * output file, but set to run at 0x0c000000+ |
| 39 | */ |
| 40 | |
| 41 | .text |
| 42 | __steppingstone : |
| 43 | AT (0) |
| 44 | { |
| 45 | src/cpu/s3c6410/start.o (.text .rodata* .data .bss) |
| 46 | src/cpu/s3c6410/start_qi.o (.text .rodata* .data .bss) |
| 47 | src/cpu/s3c6410/serial-s3c64xx.o (.text .rodata* .data .bss) |
| 48 | src/cpu/s3c6410/om_3d7k-steppingstone.o (.text .rodata* .data .bss) |
| 49 | src/cpu/s3c6410/smdk6410-steppingstone.o (.text .rodata* .data .bss) |
| 50 | src/cpu/s3c6410/hs_mmc.o (.text .rodata* .data .bss) |
| 51 | src/utils.o (.text .rodata* .data .bss) |
| 52 | src/memory-test.o (.text .rodata* .data .bss) |
| 53 | /* src/ctype.o (.text .rodata* .data .bss) */ |
| 54 | * (.steppingstone) |
| 55 | } |
| 56 | |
| 57 | . = ALIGN(4); |
| 58 | .everything_else |
| 59 | __system_ram_start + 0x3000000 + SIZEOF(.text) : |
| 60 | AT (SIZEOF(.text)) |
| 61 | { |
| 62 | *(.text .rodata* .data) |
| 63 | } |
| 64 | |
| 65 | |
| 66 | __bss_start = __system_ram_start + 0x03800000; |
| 67 | .bss_6410 |
| 68 | __bss_start (NOLOAD) : |
| 69 | AT (SIZEOF(.text) + SIZEOF(.everything_else)) |
| 70 | { |
| 71 | * (.bss) |
| 72 | } |
| 73 | |
| 74 | _end = .; |
| 75 | } |
| 76 | |