blob: 04089ae7e51fdae41667b7248b531cccd32b2c4c [file] [log] [blame]
wdenkba56f622004-02-06 23:19:44 +00001/*
2 * (C) Copyright 2002-2004
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkba56f622004-02-06 23:19:44 +00006 */
7
8OUTPUT_ARCH(powerpc)
wdenkba56f622004-02-06 23:19:44 +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) }
wdenkba56f622004-02-06 23:19:44 +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) }
wdenkba56f622004-02-06 23:19:44 +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/ppc4xx/start.o (.text)
Peter Tyser10c1b212009-07-17 19:01:16 -050043 board/xes/xpedite1000/init.o (.text)
Stefan Roesea47a12b2010-04-15 16:07:28 +020044 arch/powerpc/cpu/ppc4xx/kgdb.o (.text)
45 arch/powerpc/cpu/ppc4xx/traps.o (.text)
46 arch/powerpc/cpu/ppc4xx/interrupts.o (.text)
47 arch/powerpc/cpu/ppc4xx/4xx_uart.o (.text)
48 arch/powerpc/cpu/ppc4xx/cpu_init.o (.text)
49 arch/powerpc/cpu/ppc4xx/speed.o (.text)
wdenkba56f622004-02-06 23:19:44 +000050 common/dlmalloc.o (.text)
Peter Tyser78acc472010-04-12 22:28:05 -050051 lib/crc32.o (.text)
Stefan Roesea47a12b2010-04-15 16:07:28 +020052 arch/powerpc/lib/extable.o (.text)
Peter Tyser78acc472010-04-12 22:28:05 -050053 lib/zlib.o (.text)
wdenkba56f622004-02-06 23:19:44 +000054
Jean-Christophe PLAGNIOL-VILLARD0cf4fd32008-09-10 22:48:01 +020055/* common/env_embedded.o(.text) */
wdenkba56f622004-02-06 23:19:44 +000056
57 *(.text)
wdenkba56f622004-02-06 23:19:44 +000058 *(.got1)
59 }
60 _etext = .;
61 PROVIDE (etext = .);
62 .rodata :
63 {
Wolfgang Denk74812662005-12-12 16:06:05 +010064 *(.eh_frame)
Trent Piephof62fb992009-02-18 15:22:05 -080065 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenkba56f622004-02-06 23:19:44 +000066 }
67 .fini : { *(.fini) } =0
68 .ctors : { *(.ctors) }
69 .dtors : { *(.dtors) }
70
71 /* Read-write section, merged into data segment: */
72 . = (. + 0x0FFF) & 0xFFFFF000;
73 _erotext = .;
74 PROVIDE (erotext = .);
75 .reloc :
76 {
77 *(.got)
78 _GOT2_TABLE_ = .;
79 *(.got2)
80 _FIXUP_TABLE_ = .;
81 *(.fixup)
82 }
83 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
84 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
85
86 .data :
87 {
88 *(.data)
89 *(.data1)
90 *(.sdata)
91 *(.sdata2)
92 *(.dynamic)
93 CONSTRUCTORS
94 }
95 _edata = .;
96 PROVIDE (edata = .);
97
wdenkba56f622004-02-06 23:19:44 +000098
Marek Vasut55675142012-10-12 10:27:03 +000099 . = ALIGN(4);
100 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +0000101 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +0000102 }
103
wdenkba56f622004-02-06 23:19:44 +0000104
105 __start___ex_table = .;
106 __ex_table : { *(__ex_table) }
107 __stop___ex_table = .;
108
109 . = ALIGN(256);
110 __init_begin = .;
111 .text.init : { *(.text.init) }
112 .data.init : { *(.data.init) }
113 . = ALIGN(256);
114 __init_end = .;
115
116 __bss_start = .;
117 .bss :
118 {
119 *(.sbss) *(.scommon)
120 *(.dynbss)
121 *(.bss)
122 *(COMMON)
123 }
Albert ARIBAUD59930532013-03-30 00:19:53 +0000124 __bss_end = . ;
wdenkba56f622004-02-06 23:19:44 +0000125 PROVIDE (end = .);
126}