blob: c0998490849b8804c53f8f921e1705cf9e13e48b [file] [log] [blame]
Wolfgang Denke2c2a952010-11-25 12:14:07 +01001/*
2 * (C) Copyright 2010 Wolfgang Denk <wd@denx.de>
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denke2c2a952010-11-25 12:14:07 +01005 */
6
7OUTPUT_ARCH(powerpc)
8
9SECTIONS
10{
11 .text :
12 {
13 arch/powerpc/cpu/74xx_7xx/start.o (.text*)
14
15 *(.text*)
16 }
17 _etext = .;
18 PROVIDE (etext = .);
19 .rodata :
20 {
21 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
22 }
23
24 /* Read-write section, merged into data segment: */
25 . = (. + 0x00FF) & 0xFFFFFF00;
26 _erotext = .;
27 PROVIDE (erotext = .);
28 .reloc :
29 {
Wolfgang Denke2c2a952010-11-25 12:14:07 +010030 _GOT2_TABLE_ = .;
31 KEEP(*(.got2))
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010032 KEEP(*(.got))
33 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
Wolfgang Denke2c2a952010-11-25 12:14:07 +010034 _FIXUP_TABLE_ = .;
35 KEEP(*(.fixup))
36 }
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010037 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Wolfgang Denke2c2a952010-11-25 12:14:07 +010038 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
39
40 .data :
41 {
42 *(.data*)
43 *(.sdata*)
44 }
45 _edata = .;
46 PROVIDE (edata = .);
47
48 . = .;
Wolfgang Denke2c2a952010-11-25 12:14:07 +010049
Marek Vasut55675142012-10-12 10:27:03 +000050 . = ALIGN(4);
51 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000052 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000053 }
54
Wolfgang Denke2c2a952010-11-25 12:14:07 +010055
56 . = .;
57 __start___ex_table = .;
58 __ex_table : { *(__ex_table) }
59 __stop___ex_table = .;
60
61 . = ALIGN(256);
62 __init_begin = .;
63 .text.init : { *(.text.init) }
64 .data.init : { *(.data.init) }
65 . = ALIGN(256);
66 __init_end = .;
67
68 __bss_start = .;
69 .bss (NOLOAD) :
70 {
71 *(.bss*)
72 *(.sbss*)
73 *(COMMON)
74 . = ALIGN(4);
75 }
Simon Glass3929fb02013-03-14 06:54:53 +000076 __bss_end = . ;
Wolfgang Denke2c2a952010-11-25 12:14:07 +010077 PROVIDE (end = .);
78}