wdenk | 327f7a0 | 2001-11-28 17:49:55 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000 |
| 3 | * Rob Taylor, Flying Pig Systems Ltd. robt@flyingpig.com |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 327f7a0 | 2001-11-28 17:49:55 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | OUTPUT_ARCH(powerpc) |
wdenk | 327f7a0 | 2001-11-28 17:49:55 +0000 | [diff] [blame] | 9 | |
| 10 | MEMORY { |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 11 | ram (!rx) : org = 0x00000000 , LENGTH = 8M |
| 12 | code (!rx) : org = 0x00002000 , LENGTH = (4M - 0x2000) |
| 13 | rom (rx) : org = 0xfff00000 , LENGTH = 512K |
wdenk | 327f7a0 | 2001-11-28 17:49:55 +0000 | [diff] [blame] | 14 | } |
| 15 | |
| 16 | SECTIONS |
| 17 | { |
| 18 | _f_init = .; |
| 19 | PROVIDE(_f_init = .); |
| 20 | _f_init_rom = .; |
| 21 | PROVIDE(_f_init_rom = .); |
| 22 | |
| 23 | .init : { |
Stefan Roese | a47a12b | 2010-04-15 16:07:28 +0200 | [diff] [blame] | 24 | arch/powerpc/cpu/mpc824x/start.o (.text) |
wdenk | 327f7a0 | 2001-11-28 17:49:55 +0000 | [diff] [blame] | 25 | *(.init) |
| 26 | } > ram |
| 27 | _init_size = SIZEOF(.init); |
| 28 | PROVIDE(_init_size = SIZEOF(.init)); |
| 29 | |
| 30 | ENTRY(_start) |
| 31 | |
| 32 | /* _ftext = .; |
| 33 | _ftext_rom = .; |
| 34 | _text_size = SIZEOF(.text); |
| 35 | */ |
| 36 | .text : { |
| 37 | *(.text) |
| 38 | *(.got1) |
| 39 | } > ram |
| 40 | .rodata : { *(.rodata) } > ram |
| 41 | .dtors : { *(.dtors) } > ram |
| 42 | .data : { *(.data) } > ram |
| 43 | .sdata : { *(.sdata) } > ram |
| 44 | .sdata2 : { *(.sdata2) |
| 45 | *(.got) |
| 46 | _GOT2_TABLE_ = .; |
| 47 | *(.got2) |
| 48 | _FIXUP_TABLE_ = .; |
| 49 | *(.fixup) |
| 50 | } > ram |
| 51 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; |
| 52 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
| 53 | |
| 54 | .sbss : { *(.sbss) } > ram |
| 55 | .sbss2 : { *(.sbss2) } > ram |
| 56 | .bss : { *(.bss) } > ram |
| 57 | .debug : { *(.debug) } > ram |
| 58 | .line : { *(.line) } > ram |
| 59 | .symtab : { *(.symtab) } > ram |
| 60 | .shrstrtab : { *(.shstrtab) } > ram |
| 61 | .strtab : { *(.strtab) } > ram |
| 62 | /* .reloc : |
| 63 | { |
| 64 | *(.got) |
| 65 | _GOT2_TABLE_ = .; |
| 66 | *(.got2) |
| 67 | _FIXUP_TABLE_ = .; |
| 68 | *(.fixup) |
| 69 | } > ram |
| 70 | */ |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 71 | |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 72 | |
wdenk | 327f7a0 | 2001-11-28 17:49:55 +0000 | [diff] [blame] | 73 | __start___ex_table = .; |
| 74 | __ex_table : { *(__ex_table) } > ram |
| 75 | __stop___ex_table = .; |
| 76 | |
| 77 | |
| 78 | .ppcenv : |
| 79 | { |
Jean-Christophe PLAGNIOL-VILLARD | 0cf4fd3 | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 80 | common/env_embedded.o (.ppcenv) |
wdenk | 327f7a0 | 2001-11-28 17:49:55 +0000 | [diff] [blame] | 81 | } > ram |
| 82 | |
Albert ARIBAUD | 5993053 | 2013-03-30 00:19:53 +0000 | [diff] [blame] | 83 | __bss_end = . ; |
wdenk | 327f7a0 | 2001-11-28 17:49:55 +0000 | [diff] [blame] | 84 | PROVIDE (end = .); |
| 85 | } |