blob: 70121d9248e1c9867b27e0f843a986a577387c14 [file] [log] [blame]
TsiChungLiew1552af72008-01-14 17:43:33 -06001/*
2 * (C) Copyright 2000
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
TsiChungLiew1552af72008-01-14 17:43:33 -06006 */
7
8OUTPUT_ARCH(m68k)
Jason Jin6c0bf272011-08-22 17:24:45 +08009
TsiChungLiew1552af72008-01-14 17:43:33 -060010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
TsiChungLiew1552af72008-01-14 17:43:33 -060013 .text :
14 {
Jason Jin6c0bf272011-08-22 17:24:45 +080015 arch/m68k/cpu/mcf5227x/start.o (.text*)
Masahiro Yamadae2906a52013-11-11 14:36:00 +090016 arch/m68k/cpu/mcf5227x/built-in.o (.text*)
17 arch/m68k/lib/built-in.o (.text*)
TsiChungLiew1552af72008-01-14 17:43:33 -060018
Jason Jin6c0bf272011-08-22 17:24:45 +080019 *(.text*)
TsiChungLiew1552af72008-01-14 17:43:33 -060020 }
21 _etext = .;
22 PROVIDE (etext = .);
23 .rodata :
24 {
Jason Jin6c0bf272011-08-22 17:24:45 +080025 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
TsiChungLiew1552af72008-01-14 17:43:33 -060026 }
TsiChungLiew1552af72008-01-14 17:43:33 -060027
28 /* Read-write section, merged into data segment: */
29 . = (. + 0x00FF) & 0xFFFFFF00;
30 _erotext = .;
31 PROVIDE (erotext = .);
32
33 .reloc :
34 {
35 __got_start = .;
Jason Jin6c0bf272011-08-22 17:24:45 +080036 KEEP(*(.got))
TsiChungLiew1552af72008-01-14 17:43:33 -060037 __got_end = .;
38 _GOT2_TABLE_ = .;
Jason Jin6c0bf272011-08-22 17:24:45 +080039 KEEP(*(.got2))
TsiChungLiew1552af72008-01-14 17:43:33 -060040 _FIXUP_TABLE_ = .;
Jason Jin6c0bf272011-08-22 17:24:45 +080041 KEEP(*(.fixup))
TsiChungLiew1552af72008-01-14 17:43:33 -060042 }
43 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
44 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
45
46 .data :
47 {
Jason Jin6c0bf272011-08-22 17:24:45 +080048 *(.data*)
49 *(.sdata*)
TsiChungLiew1552af72008-01-14 17:43:33 -060050 }
51 _edata = .;
52 PROVIDE (edata = .);
53
54 . = .;
TsiChungLiew1552af72008-01-14 17:43:33 -060055
Marek Vasut55675142012-10-12 10:27:03 +000056 . = ALIGN(4);
57 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000058 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000059 }
60
TsiChungLiew1552af72008-01-14 17:43:33 -060061 . = .;
62 __start___ex_table = .;
63 __ex_table : { *(__ex_table) }
64 __stop___ex_table = .;
65
66 . = ALIGN(256);
67 __init_begin = .;
68 .text.init : { *(.text.init) }
69 .data.init : { *(.data.init) }
70 . = ALIGN(256);
71 __init_end = .;
72
73 __bss_start = .;
Jason Jin6c0bf272011-08-22 17:24:45 +080074 .bss (NOLOAD) :
TsiChungLiew1552af72008-01-14 17:43:33 -060075 {
76 _sbss = .;
Jason Jin6c0bf272011-08-22 17:24:45 +080077 *(.sbss*)
78 *(.bss*)
TsiChungLiew1552af72008-01-14 17:43:33 -060079 *(COMMON)
80 . = ALIGN(4);
81 _ebss = .;
82 }
Simon Glass3929fb02013-03-14 06:54:53 +000083 __bss_end = . ;
TsiChungLiew1552af72008-01-14 17:43:33 -060084 PROVIDE (end = .);
85}