]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/gen860t/u-boot-flashenv.lds
Merge branch 'master' of git://git.denx.de/u-boot-arm
[karo-tx-uboot.git] / board / gen860t / u-boot-flashenv.lds
1 /*
2  * Linker command file for the GEN860T board when the environment is
3  * stored in flash memory.
4  *
5  * (C) Copyright 2000
6  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
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 SECTIONS
29 {
30   /*
31    * Read-only sections, merged into text segment:
32    */
33   . = + SIZEOF_HEADERS;
34   .interp        : { *(.interp)         }
35   .hash          : { *(.hash)           }
36   .dynsym        : { *(.dynsym)         }
37   .dynstr        : { *(.dynstr)         }
38   .rel.text      : { *(.rel.text)       }
39   .rela.text     : { *(.rela.text)      }
40   .rel.data      : { *(.rel.data)       }
41   .rela.data     : { *(.rela.data)      }
42   .rel.rodata    : { *(.rel.rodata)     }
43   .rela.rodata   : { *(.rela.rodata)    }
44   .rel.got       : { *(.rel.got)        }
45   .rela.got      : { *(.rela.got)       }
46   .rel.ctors     : { *(.rel.ctors)      }
47   .rela.ctors    : { *(.rela.ctors)     }
48   .rel.dtors     : { *(.rel.dtors)      }
49   .rela.dtors    : { *(.rela.dtors)     }
50   .rel.bss       : { *(.rel.bss)        }
51   .rela.bss      : { *(.rela.bss)       }
52   .rel.plt       : { *(.rel.plt)        }
53   .rela.plt      : { *(.rela.plt)       }
54   .init          : { *(.init)           }
55   .plt           : { *(.plt)            }
56   .text :
57   {
58     cpu/mpc8xx/start.o  (.text)
59     *(.text)
60     *(.fixup)
61     *(.got1)
62   }
63   _etext = .;
64   PROVIDE (etext = .);
65   .rodata    :
66   {
67     *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
68   }
69   .fini      : { *(.fini)    } =0
70   .ctors     : { *(.ctors)   }
71   .dtors     : { *(.dtors)   }
72
73   /*
74    * Read-write section, merged into data segment:
75    */
76   . = (. + 0x00FF) & 0xFFFFFF00;
77   _erotext = .;
78   PROVIDE (erotext = .);
79   .reloc   :
80   {
81     *(.got)
82     _GOT2_TABLE_ = .;
83     *(.got2)
84     _FIXUP_TABLE_ = .;
85     *(.fixup)
86   }
87   __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
88   __fixup_entries = (. - _FIXUP_TABLE_)>>2;
89
90   .data:
91   {
92     *(.data)
93     *(.data1)
94     *(.sdata)
95     *(.sdata2)
96     *(.dynamic)
97     CONSTRUCTORS
98   }
99   _edata  =  .;
100   PROVIDE (edata = .);
101
102   . = .;
103   __u_boot_cmd_start = .;
104   .u_boot_cmd : { *(.u_boot_cmd) }
105   __u_boot_cmd_end = .;
106
107   . = .;
108   __start___ex_table = .;
109   __ex_table : { *(__ex_table) }
110   __stop___ex_table = .;
111
112   . = ALIGN(256);
113   __init_begin = .;
114   .text.init : { *(.text.init) }
115   .data.init : { *(.data.init) }
116   . = ALIGN(256);
117   __init_end = .;
118
119   __bss_start = .;
120   .bss (NOLOAD)       :
121   {
122    *(.sbss) *(.scommon)
123    *(.dynbss)
124    *(.bss)
125    *(COMMON)
126    . = ALIGN(4);
127   }
128
129   _end = . ;
130   PROVIDE (end = .);
131
132   .ppcenv:
133   {
134     . = env_offset;
135     common/env_embedded.o
136   }
137 }