]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/LEOX/elpt860/u-boot.lds
f9c2bebd2dc6836a6e45149996d5f5340662e618
[karo-tx-uboot.git] / board / LEOX / elpt860 / u-boot.lds
1 /*
2 **=====================================================================
3 **
4 ** Copyright (C) 2000, 2001, 2002, 2003
5 ** The LEOX team <team@leox.org>, http://www.leox.org
6 **
7 ** LEOX.org is about the development of free hardware and software resources
8 **   for system on chip.
9 **
10 ** Description: U-Boot port on the LEOX's ELPT860 CPU board
11 ** ~~~~~~~~~~~
12 **
13 **=====================================================================
14 **
15  * SPDX-License-Identifier:     GPL-2.0+
16 **
17 **=====================================================================
18 */
19
20 OUTPUT_ARCH(powerpc)
21
22 SECTIONS
23 {
24   /* Read-only sections, merged into text segment: */
25   . = + SIZEOF_HEADERS;
26   .text      :
27   {
28     /* WARNING - the following is hand-optimized to fit within  */
29     /* the sector layout of our flash chips!    XXX FIXME XXX   */
30
31     arch/powerpc/cpu/mpc8xx/start.o     (.text*)
32     arch/powerpc/cpu/mpc8xx/traps.o     (.text*)
33     common/libcommon.o                  (.text*)
34     arch/powerpc/cpu/mpc8xx/libmpc8xx.o (.text*)
35     board/LEOX/elpt860/libelpt860.o     (.text*)
36     arch/powerpc/lib/libpowerpc.o       (.text*)
37 /*    drivers/rtc/librtc.o              (.text*)        */
38
39     . = env_offset;
40     common/env_embedded.o               (.text*)
41
42     *(.text*)
43   }
44   _etext = .;
45   PROVIDE (etext = .);
46   .rodata    :
47   {
48     *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
49   }
50
51   /* Read-write section, merged into data segment: */
52   . = (. + 0x00FF) & 0xFFFFFF00;
53   _erotext = .;
54   PROVIDE (erotext = .);
55   .reloc   :
56   {
57     _GOT2_TABLE_ = .;
58     KEEP(*(.got2))
59     KEEP(*(.got))
60     PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
61     _FIXUP_TABLE_ = .;
62     KEEP(*(.fixup))
63   }
64   __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
65   __fixup_entries = (. - _FIXUP_TABLE_)>>2;
66
67   .data    :
68   {
69     *(.data*)
70     *(.sdata*)
71   }
72   _edata  =  .;
73   PROVIDE (edata = .);
74
75   . = .;
76
77   . = ALIGN(4);
78   .u_boot_list : {
79         KEEP(*(SORT(.u_boot_list*)));
80   }
81
82   . = .;
83   __start___ex_table = .;
84   __ex_table : { *(__ex_table) }
85   __stop___ex_table = .;
86
87   . = ALIGN(256);
88   __init_begin = .;
89   .text.init : { *(.text.init) }
90   .data.init : { *(.data.init) }
91   . = ALIGN(256);
92   __init_end = .;
93
94   __bss_start = .;
95   .bss (NOLOAD)       :
96   {
97    *(.bss*)
98    *(.sbss*)
99    *(COMMON)
100    . = ALIGN(4);
101   }
102   __bss_end = . ;
103   PROVIDE (end = .);
104 }