blob: 7f9e41c6d12dd7a990041974aa8dd893146f47d0 [file] [log] [blame]
stroese4536e9b2004-12-16 18:24:06 +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+
stroese4536e9b2004-12-16 18:24:06 +00006 */
7
8OUTPUT_ARCH(m68k)
stany MARCEL4df9e532011-10-14 04:38:01 +00009
stroese4536e9b2004-12-16 18:24:06 +000010SECTIONS
11{
stroese4536e9b2004-12-16 18:24:06 +000012 .text :
13 {
stany MARCEL4df9e532011-10-14 04:38:01 +000014 arch/m68k/cpu/mcf52x2/start.o (.text*)
stroese4536e9b2004-12-16 18:24:06 +000015
stany MARCEL4df9e532011-10-14 04:38:01 +000016 *(.text*)
stroese4536e9b2004-12-16 18:24:06 +000017 }
18 _etext = .;
19 PROVIDE (etext = .);
20 .rodata :
21 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080022 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
stroese4536e9b2004-12-16 18:24:06 +000023 }
stroese4536e9b2004-12-16 18:24:06 +000024
25 /* Read-write section, merged into data segment: */
26 . = (. + 0x00FF) & 0xFFFFFF00;
27 _erotext = .;
28 PROVIDE (erotext = .);
29
30 .reloc :
31 {
32 __got_start = .;
stany MARCEL4df9e532011-10-14 04:38:01 +000033 KEEP(*(.got))
stroese4536e9b2004-12-16 18:24:06 +000034 __got_end = .;
35 _GOT2_TABLE_ = .;
stany MARCEL4df9e532011-10-14 04:38:01 +000036 KEEP(*(.got2))
stroese4536e9b2004-12-16 18:24:06 +000037 _FIXUP_TABLE_ = .;
stany MARCEL4df9e532011-10-14 04:38:01 +000038 KEEP(*(.fixup))
stroese4536e9b2004-12-16 18:24:06 +000039 }
40 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
41 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
42
43 .data :
44 {
stany MARCEL4df9e532011-10-14 04:38:01 +000045 *(.data*)
46 *(.sdata*)
stroese4536e9b2004-12-16 18:24:06 +000047 }
48 _edata = .;
49 PROVIDE (edata = .);
50
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020051 . = .;
stroese4536e9b2004-12-16 18:24:06 +000052
Marek Vasut607092a2012-10-12 10:27:03 +000053 . = ALIGN(4);
54 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000055 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000056 }
57
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020058 . = .;
stroese4536e9b2004-12-16 18:24:06 +000059 __start___ex_table = .;
60 __ex_table : { *(__ex_table) }
61 __stop___ex_table = .;
62
63 . = ALIGN(256);
64 __init_begin = .;
65 .text.init : { *(.text.init) }
66 .data.init : { *(.data.init) }
67 . = ALIGN(256);
68 __init_end = .;
69
70 __bss_start = .;
stany MARCEL4df9e532011-10-14 04:38:01 +000071 .bss (NOLOAD) :
stroese4536e9b2004-12-16 18:24:06 +000072 {
73 _sbss = .;
stany MARCEL4df9e532011-10-14 04:38:01 +000074 *(.bss*)
75 *(.sbss*)
stroese4536e9b2004-12-16 18:24:06 +000076 *(COMMON)
77 . = ALIGN(4);
78 _ebss = .;
79 }
Simon Glassed70c8f2013-03-14 06:54:53 +000080 __bss_end = . ;
stroese4536e9b2004-12-16 18:24:06 +000081 PROVIDE (end = .);
82}