blob: 7f9e41c6d12dd7a990041974aa8dd893146f47d0 [file] [log] [blame]
stroese8d8f8942004-12-16 18:24:06 +00001/*
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+
stroese8d8f8942004-12-16 18:24:06 +00006 */
7
8OUTPUT_ARCH(m68k)
stany MARCEL25ceb272011-10-14 04:38:01 +00009
stroese8d8f8942004-12-16 18:24:06 +000010SECTIONS
11{
stroese8d8f8942004-12-16 18:24:06 +000012 .text :
13 {
stany MARCEL25ceb272011-10-14 04:38:01 +000014 arch/m68k/cpu/mcf52x2/start.o (.text*)
stroese8d8f8942004-12-16 18:24:06 +000015
stany MARCEL25ceb272011-10-14 04:38:01 +000016 *(.text*)
stroese8d8f8942004-12-16 18:24:06 +000017 }
18 _etext = .;
19 PROVIDE (etext = .);
20 .rodata :
21 {
Trent Piephof62fb992009-02-18 15:22:05 -080022 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
stroese8d8f8942004-12-16 18:24:06 +000023 }
stroese8d8f8942004-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 MARCEL25ceb272011-10-14 04:38:01 +000033 KEEP(*(.got))
stroese8d8f8942004-12-16 18:24:06 +000034 __got_end = .;
35 _GOT2_TABLE_ = .;
stany MARCEL25ceb272011-10-14 04:38:01 +000036 KEEP(*(.got2))
stroese8d8f8942004-12-16 18:24:06 +000037 _FIXUP_TABLE_ = .;
stany MARCEL25ceb272011-10-14 04:38:01 +000038 KEEP(*(.fixup))
stroese8d8f8942004-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 MARCEL25ceb272011-10-14 04:38:01 +000045 *(.data*)
46 *(.sdata*)
stroese8d8f8942004-12-16 18:24:06 +000047 }
48 _edata = .;
49 PROVIDE (edata = .);
50
Wolfgang Denk807d5d72005-08-31 12:28:00 +020051 . = .;
stroese8d8f8942004-12-16 18:24:06 +000052
Marek Vasut55675142012-10-12 10:27:03 +000053 . = ALIGN(4);
54 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000055 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000056 }
57
Wolfgang Denk807d5d72005-08-31 12:28:00 +020058 . = .;
stroese8d8f8942004-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 MARCEL25ceb272011-10-14 04:38:01 +000071 .bss (NOLOAD) :
stroese8d8f8942004-12-16 18:24:06 +000072 {
73 _sbss = .;
stany MARCEL25ceb272011-10-14 04:38:01 +000074 *(.bss*)
75 *(.sbss*)
stroese8d8f8942004-12-16 18:24:06 +000076 *(COMMON)
77 . = ALIGN(4);
78 _ebss = .;
79 }
Simon Glass3929fb02013-03-14 06:54:53 +000080 __bss_end = . ;
stroese8d8f8942004-12-16 18:24:06 +000081 PROVIDE (end = .);
82}