blob: 4071f70d45053c3134973e7bef8e62ba578c394f [file] [log] [blame]
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +01001/*
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+
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +01006 */
7
8OUTPUT_ARCH(m68k)
stany MARCEL25ceb272011-10-14 04:38:01 +00009
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010010SECTIONS
11{
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010012 .text :
13 {
stany MARCEL25ceb272011-10-14 04:38:01 +000014 arch/m68k/cpu/mcf52x2/start.o (.text*)
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010015
stany MARCEL25ceb272011-10-14 04:38:01 +000016 *(.text*)
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010017 }
18 _etext = .;
19 PROVIDE (etext = .);
20 .rodata :
21 {
Trent Piephof62fb992009-02-18 15:22:05 -080022 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010023 }
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010024
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))
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010034 __got_end = .;
35 _GOT2_TABLE_ = .;
stany MARCEL25ceb272011-10-14 04:38:01 +000036 KEEP(*(.got2))
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010037 _FIXUP_TABLE_ = .;
stany MARCEL25ceb272011-10-14 04:38:01 +000038 KEEP(*(.fixup))
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010039 }
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*)
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010047 }
48 _edata = .;
49 PROVIDE (edata = .);
50
51 . = .;
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010052
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
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010058 . = .;
59 __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) :
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010072 {
73 _sbss = .;
stany MARCEL25ceb272011-10-14 04:38:01 +000074 *(.bss*)
75 *(.sbss*)
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010076 *(COMMON)
77 . = ALIGN(4);
78 _ebss = .;
79 }
Simon Glass3929fb02013-03-14 06:54:53 +000080 __bss_end = . ;
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +010081 PROVIDE (end = .);
82}