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