blob: 413ca531dc87e92844f637b4850c003fd9755553 [file] [log] [blame]
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001/*
2 * (C) Copyright 2000
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00006 */
7
8OUTPUT_ARCH(m68k)
Jason Jin80c16192011-08-22 17:24:45 +08009
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000013 .text :
14 {
Jason Jin80c16192011-08-22 17:24:45 +080015 arch/m68k/cpu/mcf5445x/start.o (.text*)
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000016
Jason Jin80c16192011-08-22 17:24:45 +080017 *(.text*)
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000018 }
19 _etext = .;
20 PROVIDE (etext = .);
21 .rodata :
22 {
Jason Jin80c16192011-08-22 17:24:45 +080023 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000024 }
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000025
26 /* Read-write section, merged into data segment: */
27 . = (. + 0x00FF) & 0xFFFFFF00;
28 _erotext = .;
29 PROVIDE (erotext = .);
30
31 .reloc :
32 {
33 __got_start = .;
Jason Jin80c16192011-08-22 17:24:45 +080034 KEEP(*(.got))
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000035 __got_end = .;
36 _GOT2_TABLE_ = .;
Jason Jin80c16192011-08-22 17:24:45 +080037 KEEP(*(.got2))
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000038 _FIXUP_TABLE_ = .;
Jason Jin80c16192011-08-22 17:24:45 +080039 KEEP(*(.fixup))
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000040 }
41 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
42 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
43
44 .data :
45 {
Jason Jin80c16192011-08-22 17:24:45 +080046 *(.data*)
47 *(.sdata*)
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000048 }
49 _edata = .;
50 PROVIDE (edata = .);
51
52 . = .;
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000053
Marek Vasut607092a2012-10-12 10:27:03 +000054 . = ALIGN(4);
55 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000056 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000057 }
58
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000059 . = .;
60 __start___ex_table = .;
61 __ex_table : { *(__ex_table) }
62 __stop___ex_table = .;
63
64 . = ALIGN(256);
65 __init_begin = .;
66 .text.init : { *(.text.init) }
67 .data.init : { *(.data.init) }
68 . = ALIGN(256);
69 __init_end = .;
70
71 __bss_start = .;
Jason Jin80c16192011-08-22 17:24:45 +080072 .bss (NOLOAD) :
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000073 {
74 _sbss = .;
Jason Jin80c16192011-08-22 17:24:45 +080075 *(.bss*)
76 *(.sbss*)
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000077 *(COMMON)
78 . = ALIGN(4);
79 _ebss = .;
80 }
Simon Glassed70c8f2013-03-14 06:54:53 +000081 __bss_end = . ;
TsiChung Liew3cdc00a2008-08-11 13:41:49 +000082 PROVIDE (end = .);
83}