Merge branch 'master' of git://www.denx.de/git/u-boot-avr32
[platform/kernel/u-boot.git] / board / stxssa / u-boot.lds
1 /*
2  * (C) Copyright 2005 Embedded Alley Solutions, Inc.
3  * Dan Malek, <dan@embeddedalley.com>
4  * Copied from STx GP3.
5  * Updates for Silicon Tx GP3 SSA.
6  *
7  * (C) Copyright 2002,2003,Motorola,Inc.
8  * Xianghua Xiao, X.Xiao@motorola.com.
9  *
10  * See file CREDITS for list of people who contributed to this
11  * project.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License as
15  * published by the Free Software Foundation; either version 2 of
16  * the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26  * MA 02111-1307 USA
27  */
28
29 OUTPUT_ARCH(powerpc)
30 SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
31 /* Do we need any of these for elf?
32    __DYNAMIC = 0;    */
33 SECTIONS
34 {
35   .resetvec 0xFFFFFFFC :
36   {
37     *(.resetvec)
38   } = 0xffff
39
40   .bootpg 0xFFFFF000 :
41   {
42     cpu/mpc85xx/start.o (.bootpg)
43   } = 0xffff
44
45   /* Read-only sections, merged into text segment: */
46   . = + SIZEOF_HEADERS;
47   .interp : { *(.interp) }
48   .hash          : { *(.hash)           }
49   .dynsym        : { *(.dynsym)         }
50   .dynstr        : { *(.dynstr)         }
51   .rel.text      : { *(.rel.text)               }
52   .rela.text     : { *(.rela.text)      }
53   .rel.data      : { *(.rel.data)               }
54   .rela.data     : { *(.rela.data)      }
55   .rel.rodata    : { *(.rel.rodata)     }
56   .rela.rodata   : { *(.rela.rodata)    }
57   .rel.got       : { *(.rel.got)                }
58   .rela.got      : { *(.rela.got)               }
59   .rel.ctors     : { *(.rel.ctors)      }
60   .rela.ctors    : { *(.rela.ctors)     }
61   .rel.dtors     : { *(.rel.dtors)      }
62   .rela.dtors    : { *(.rela.dtors)     }
63   .rel.bss       : { *(.rel.bss)                }
64   .rela.bss      : { *(.rela.bss)               }
65   .rel.plt       : { *(.rel.plt)                }
66   .rela.plt      : { *(.rela.plt)               }
67   .init          : { *(.init)   }
68   .plt : { *(.plt) }
69   .text      :
70   {
71     cpu/mpc85xx/start.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)
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)
96     *(.eh_frame)
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
129   . = .;
130   __u_boot_cmd_start = .;
131   .u_boot_cmd : { *(.u_boot_cmd) }
132   __u_boot_cmd_end = .;
133
134   . = .;
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   . = .;
147   __bss_start = .;
148   .bss (NOLOAD)       :
149   {
150    *(.sbss) *(.scommon)
151    *(.dynbss)
152    *(.bss)
153    *(COMMON)
154   }
155   _end = . ;
156   PROVIDE (end = .);
157 }