blob: eec132d38c84f9699a9b51e2574dd7a216722a06 [file] [log] [blame]
wdenkdb2f721f2003-03-06 00:58:30 +00001/*
2 * (C) Copyright 2000
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkdb2f721f2003-03-06 00:58:30 +00006 */
7
8OUTPUT_ARCH(powerpc)
wdenkdb2f721f2003-03-06 00:58:30 +00009/* Do we need any of these for elf?
10 __DYNAMIC = 0; */
11SECTIONS
12{
13 /* Read-only sections, merged into text segment: */
14 . = + SIZEOF_HEADERS;
15 .interp : { *(.interp) }
16 .hash : { *(.hash) }
17 .dynsym : { *(.dynsym) }
18 .dynstr : { *(.dynstr) }
19 .rel.text : { *(.rel.text) }
Wolfgang Denk53677ef2008-05-20 16:00:29 +020020 .rela.text : { *(.rela.text) }
wdenkdb2f721f2003-03-06 00:58:30 +000021 .rel.data : { *(.rel.data) }
Wolfgang Denk53677ef2008-05-20 16:00:29 +020022 .rela.data : { *(.rela.data) }
23 .rel.rodata : { *(.rel.rodata) }
24 .rela.rodata : { *(.rela.rodata) }
wdenkdb2f721f2003-03-06 00:58:30 +000025 .rel.got : { *(.rel.got) }
26 .rela.got : { *(.rela.got) }
27 .rel.ctors : { *(.rel.ctors) }
28 .rela.ctors : { *(.rela.ctors) }
29 .rel.dtors : { *(.rel.dtors) }
30 .rela.dtors : { *(.rela.dtors) }
31 .rel.bss : { *(.rel.bss) }
32 .rela.bss : { *(.rela.bss) }
33 .rel.plt : { *(.rel.plt) }
34 .rela.plt : { *(.rela.plt) }
35 .init : { *(.init) }
36 .plt : { *(.plt) }
37 .text :
38 {
39 /* WARNING - the following is hand-optimized to fit within */
40 /* the sector layout of our flash chips! XXX FIXME XXX */
41
Stefan Roesea47a12b2010-04-15 16:07:28 +020042 arch/powerpc/cpu/mpc8xx/start.o (.text)
wdenkdb2f721f2003-03-06 00:58:30 +000043 common/dlmalloc.o (.text)
Peter Tyser78acc472010-04-12 22:28:05 -050044 lib/vsprintf.o (.text)
45 lib/crc32.o (.text)
Stefan Roesea47a12b2010-04-15 16:07:28 +020046 arch/powerpc/lib/extable.o (.text)
wdenkdb2f721f2003-03-06 00:58:30 +000047
48 . = env_offset;
Jean-Christophe PLAGNIOL-VILLARD0cf4fd32008-09-10 22:48:01 +020049 common/env_embedded.o(.text)
wdenkdb2f721f2003-03-06 00:58:30 +000050
51 *(.text)
wdenkdb2f721f2003-03-06 00:58:30 +000052 *(.got1)
53 }
54 _etext = .;
55 PROVIDE (etext = .);
56 .rodata :
57 {
58 *(.rodata)
59 *(.rodata1)
Wolfgang Denk74812662005-12-12 16:06:05 +010060 *(.rodata.str1.4)
61 *(.eh_frame)
wdenkdb2f721f2003-03-06 00:58:30 +000062 }
63 .fini : { *(.fini) } =0
64 .ctors : { *(.ctors) }
65 .dtors : { *(.dtors) }
66
67 /* Read-write section, merged into data segment: */
68 . = (. + 0x0FFF) & 0xFFFFF000;
69 _erotext = .;
70 PROVIDE (erotext = .);
71 .reloc :
72 {
73 *(.got)
74 _GOT2_TABLE_ = .;
75 *(.got2)
76 _FIXUP_TABLE_ = .;
77 *(.fixup)
78 }
79 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
80 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
81
82 .data :
83 {
84 *(.data)
85 *(.data1)
86 *(.sdata)
87 *(.sdata2)
88 *(.dynamic)
89 CONSTRUCTORS
90 }
91 _edata = .;
92 PROVIDE (edata = .);
93
94 __start___ex_table = .;
95 __ex_table : { *(__ex_table) }
96 __stop___ex_table = .;
97
98 . = ALIGN(4096);
99 __init_begin = .;
100 .text.init : { *(.text.init) }
101 .data.init : { *(.data.init) }
102 . = ALIGN(4096);
103 __init_end = .;
104
105 __bss_start = .;
106 .bss :
107 {
108 *(.sbss) *(.scommon)
109 *(.dynbss)
110 *(.bss)
111 *(COMMON)
112 }
Albert ARIBAUD59930532013-03-30 00:19:53 +0000113 __bss_end = . ;
wdenkdb2f721f2003-03-06 00:58:30 +0000114 PROVIDE (end = .);
115}