1750c74a197a7cd34bae4bccd120b55114b28434
[platform/kernel/u-boot.git] / board / amcc / canyonlands / u-boot-ram.lds
1 /*
2  * (C) Copyright 2009
3  * Stefan Roese, DENX Software Engineering, sr@denx.de.
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 OUTPUT_ARCH(powerpc)
9 SECTIONS
10 {
11   /* Read-only sections, merged into text segment: */
12   . = + SIZEOF_HEADERS;
13   .text      :
14   {
15     _image_copy_start = .;
16     arch/powerpc/cpu/ppc4xx/start.o     (.text*)
17     board/amcc/canyonlands/init.o       (.text*)
18
19     *(.text*)
20   }
21   _etext = .;
22   PROVIDE (etext = .);
23   .rodata    :
24   {
25     *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
26   }
27
28   /* Read-write section, merged into data segment: */
29   . = (. + 0x00FF) & 0xFFFFFF00;
30   _erotext = .;
31   PROVIDE (erotext = .);
32   .reloc   :
33   {
34     KEEP(*(.got))
35     _GOT2_TABLE_ = .;
36     KEEP(*(.got2))
37     _FIXUP_TABLE_ = .;
38     KEEP(*(.fixup))
39   }
40   __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
41   __fixup_entries = (. - _FIXUP_TABLE_)>>2;
42
43   .data    :
44   {
45     *(.data*)
46     *(.sdata*)
47   }
48   _edata  =  .;
49   PROVIDE (edata = .);
50
51   . = .;
52
53   .u_boot_list : {
54         KEEP(*(SORT(.u_boot_list*)));
55   }
56
57   . = .;
58   __start___ex_table = .;
59   __ex_table : { *(__ex_table) }
60   __stop___ex_table = .;
61
62   . = ALIGN(256);
63   __init_begin = .;
64   .text.init : { *(.text.init) }
65   .data.init : {
66         *(.data.init)
67         . = ALIGN(256);
68         LONG(0) LONG(0)         /* Extend u-boot.bin to here */
69   }
70   __init_end = .;
71   _end = .;
72   _image_binary_end = .;
73
74   __bss_start = .;
75   .bss (NOLOAD)       :
76   {
77    *(.bss*)
78    *(.sbss*)
79    *(COMMON)
80    . = ALIGN(4);
81   }
82
83   __bss_end = . ;
84   PROVIDE (end = .);
85 }