blob: de8d09bf66303196ebcd03429d0cb4dd69868d88 [file] [log] [blame]
TsiChung Liewe7e4fc82008-10-22 11:38:21 +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 Liewe7e4fc82008-10-22 11:38:21 +00006 */
7
8OUTPUT_ARCH(m68k)
Jason Jin80c16192011-08-22 17:24:45 +08009
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000013 .text :
14 {
Masahiro Yamada30a198b2013-11-11 14:36:00 +090015 arch/m68k/cpu/mcf532x/start.o (.text*)
16 arch/m68k/cpu/mcf532x/built-in.o (.text*)
17 arch/m68k/lib/built-in.o (.text*)
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000018
19 . = DEFINED(env_offset) ? env_offset : .;
Jason Jin80c16192011-08-22 17:24:45 +080020 common/env_embedded.o (.text*)
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000021
Jason Jin80c16192011-08-22 17:24:45 +080022 *(.text*)
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000023 }
24 _etext = .;
25 PROVIDE (etext = .);
26 .rodata :
27 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080028 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000029 }
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000030
31 /* Read-write section, merged into data segment: */
32 . = (. + 0x00FF) & 0xFFFFFF00;
33 _erotext = .;
34 PROVIDE (erotext = .);
35
36 .reloc :
37 {
38 __got_start = .;
Jason Jin80c16192011-08-22 17:24:45 +080039 KEEP(*(.got))
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000040 __got_end = .;
41 _GOT2_TABLE_ = .;
Jason Jin80c16192011-08-22 17:24:45 +080042 KEEP(*(.got2))
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000043 _FIXUP_TABLE_ = .;
Jason Jin80c16192011-08-22 17:24:45 +080044 KEEP(*(.fixup))
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000045 }
46 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
47 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
48
49 .data :
50 {
Jason Jin80c16192011-08-22 17:24:45 +080051 *(.data*)
52 *(.sdata*)
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000053 }
54 _edata = .;
55 PROVIDE (edata = .);
56
57 . = .;
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000058
Marek Vasut607092a2012-10-12 10:27:03 +000059 . = ALIGN(4);
60 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000061 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000062 }
63
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000064 . = .;
65 __start___ex_table = .;
66 __ex_table : { *(__ex_table) }
67 __stop___ex_table = .;
68
69 . = ALIGN(256);
70 __init_begin = .;
71 .text.init : { *(.text.init) }
72 .data.init : { *(.data.init) }
73 . = ALIGN(256);
74 __init_end = .;
75
76 __bss_start = .;
77 .bss (NOLOAD) :
78 {
79 _sbss = .;
Jason Jin80c16192011-08-22 17:24:45 +080080 *(.sbss*)
81 *(.bss*)
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000082 *(COMMON)
83 . = ALIGN(4);
84 _ebss = .;
85 }
Simon Glassed70c8f2013-03-14 06:54:53 +000086 __bss_end = . ;
TsiChung Liewe7e4fc82008-10-22 11:38:21 +000087 PROVIDE (end = .);
88}