blob: 097ac2e8f5d101cb77a3bec79d8e5b356a7aca7f [file] [log] [blame]
TsiChung Liewf6afe722007-06-18 13:50:13 -05001/*
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 Liewf6afe722007-06-18 13:50:13 -05006 */
7
8OUTPUT_ARCH(m68k)
Jason Jin80c16192011-08-22 17:24:45 +08009
TsiChung Liewf6afe722007-06-18 13:50:13 -050010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
TsiChung Liewf6afe722007-06-18 13:50:13 -050013 .text :
14 {
Jason Jin80c16192011-08-22 17:24:45 +080015 arch/m68k/cpu/mcf532x/start.o (.text*)
TsiChung Liewf6afe722007-06-18 13:50:13 -050016
17 . = DEFINED(env_offset) ? env_offset : .;
Jason Jin80c16192011-08-22 17:24:45 +080018 common/env_embedded.o (.text*)
TsiChung Liewf6afe722007-06-18 13:50:13 -050019
Jason Jin80c16192011-08-22 17:24:45 +080020 *(.text*)
TsiChung Liewf6afe722007-06-18 13:50:13 -050021 }
22 _etext = .;
23 PROVIDE (etext = .);
24 .rodata :
25 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080026 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
TsiChung Liewf6afe722007-06-18 13:50:13 -050027 }
TsiChung Liewf6afe722007-06-18 13:50:13 -050028
29 /* Read-write section, merged into data segment: */
30 . = (. + 0x00FF) & 0xFFFFFF00;
31 _erotext = .;
32 PROVIDE (erotext = .);
33
34 .reloc :
35 {
36 __got_start = .;
Jason Jin80c16192011-08-22 17:24:45 +080037 KEEP(*(.got))
TsiChung Liewf6afe722007-06-18 13:50:13 -050038 __got_end = .;
39 _GOT2_TABLE_ = .;
Jason Jin80c16192011-08-22 17:24:45 +080040 KEEP(*(.got2))
TsiChung Liewf6afe722007-06-18 13:50:13 -050041 _FIXUP_TABLE_ = .;
Jason Jin80c16192011-08-22 17:24:45 +080042 KEEP(*(.fixup))
TsiChung Liewf6afe722007-06-18 13:50:13 -050043 }
44 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
45 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
46
47 .data :
48 {
Jason Jin80c16192011-08-22 17:24:45 +080049 *(.data*)
50 *(.sdata*)
TsiChung Liewf6afe722007-06-18 13:50:13 -050051 }
52 _edata = .;
53 PROVIDE (edata = .);
54
55 . = .;
TsiChung Liewf6afe722007-06-18 13:50:13 -050056
Marek Vasut607092a2012-10-12 10:27:03 +000057 . = ALIGN(4);
58 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000059 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000060 }
61
TsiChung Liewf6afe722007-06-18 13:50:13 -050062 . = .;
63 __start___ex_table = .;
64 __ex_table : { *(__ex_table) }
65 __stop___ex_table = .;
66
67 . = ALIGN(256);
68 __init_begin = .;
69 .text.init : { *(.text.init) }
70 .data.init : { *(.data.init) }
71 . = ALIGN(256);
72 __init_end = .;
73
74 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010075 .bss (NOLOAD) :
TsiChung Liewf6afe722007-06-18 13:50:13 -050076 {
77 _sbss = .;
Jason Jin80c16192011-08-22 17:24:45 +080078 *(.sbss*)
79 *(.bss*)
TsiChung Liewf6afe722007-06-18 13:50:13 -050080 *(COMMON)
81 . = ALIGN(4);
82 _ebss = .;
83 }
Simon Glassed70c8f2013-03-14 06:54:53 +000084 __bss_end = . ;
TsiChung Liewf6afe722007-06-18 13:50:13 -050085 PROVIDE (end = .);
86}