blob: 9785639c76c32bac6b29315f351d7a588851f444 [file] [log] [blame]
wdenk7aa78612003-05-03 15:50:43 +00001/*
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
27OUTPUT_ARCH(powerpc)
wdenk7aa78612003-05-03 15:50:43 +000028SECTIONS
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) }
Wolfgang Denk53677ef2008-05-20 16:00:29 +020039 .rela.text : { *(.rela.text) }
wdenk7aa78612003-05-03 15:50:43 +000040 .rel.data : { *(.rel.data) }
Wolfgang Denk53677ef2008-05-20 16:00:29 +020041 .rela.data : { *(.rela.data) }
42 .rel.rodata : { *(.rel.rodata) }
43 .rela.rodata : { *(.rela.rodata) }
wdenk7aa78612003-05-03 15:50:43 +000044 .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 {
Trent Piephof62fb992009-02-18 15:22:05 -080067 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenk7aa78612003-05-03 15:50:43 +000068 }
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
Wolfgang Denk807d5d72005-08-31 12:28:00 +0200102 . = .;
103 __u_boot_cmd_start = .;
104 .u_boot_cmd : { *(.u_boot_cmd) }
105 __u_boot_cmd_end = .;
106
107 . = .;
wdenk7aa78612003-05-03 15:50:43 +0000108 __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 = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +0100120 .bss (NOLOAD) :
wdenk7aa78612003-05-03 15:50:43 +0000121 {
122 *(.sbss) *(.scommon)
123 *(.dynbss)
124 *(.bss)
125 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +0530126 . = ALIGN(4);
wdenk7aa78612003-05-03 15:50:43 +0000127 }
wdenk8bde7f72003-06-27 21:31:46 +0000128
wdenk7aa78612003-05-03 15:50:43 +0000129 _end = . ;
130 PROVIDE (end = .);
131
132 .ppcenv:
133 {
134 . = env_offset;
Jean-Christophe PLAGNIOL-VILLARD0cf4fd32008-09-10 22:48:01 +0200135 common/env_embedded.o
wdenk7aa78612003-05-03 15:50:43 +0000136 }
137}