blob: 0df2a0aaf613d27aeb1945f05470115a1963bc97 [file] [log] [blame]
Heiko Schocher9acb6262006-04-20 08:42:42 +02001/*
2 * (C) Copyright 2000-2003
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Heiko Schocher9acb6262006-04-20 08:42:42 +02006 */
7
8OUTPUT_ARCH(m68k)
stany MARCEL25ceb272011-10-14 04:38:01 +00009
Heiko Schocher9acb6262006-04-20 08:42:42 +020010SECTIONS
11{
Heiko Schocher9acb6262006-04-20 08:42:42 +020012 .text :
13 {
stany MARCEL25ceb272011-10-14 04:38:01 +000014 arch/m68k/cpu/mcf52x2/start.o (.text*)
Heiko Schocher9acb6262006-04-20 08:42:42 +020015
stany MARCEL25ceb272011-10-14 04:38:01 +000016 *(.text*)
Heiko Schocher9acb6262006-04-20 08:42:42 +020017 }
18 _etext = .;
19 PROVIDE (etext = .);
20 .rodata :
21 {
Trent Piephof62fb992009-02-18 15:22:05 -080022 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Heiko Schocher9acb6262006-04-20 08:42:42 +020023 }
Heiko Schocher9acb6262006-04-20 08:42:42 +020024
25 /* Read-write section, merged into data segment: */
26 . = (. + 0x00FF) & 0xFFFFFF00;
27 _erotext = .;
28 PROVIDE (erotext = .);
stany MARCEL25ceb272011-10-14 04:38:01 +000029
30 .reloc :
Heiko Schocher9acb6262006-04-20 08:42:42 +020031 {
32 __got_start = .;
stany MARCEL25ceb272011-10-14 04:38:01 +000033 KEEP(*(.got))
Heiko Schocher9acb6262006-04-20 08:42:42 +020034 __got_end = .;
35 _GOT2_TABLE_ = .;
stany MARCEL25ceb272011-10-14 04:38:01 +000036 KEEP(*(.got2))
Heiko Schocher9acb6262006-04-20 08:42:42 +020037 _FIXUP_TABLE_ = .;
stany MARCEL25ceb272011-10-14 04:38:01 +000038 KEEP(*(.fixup))
Heiko Schocher9acb6262006-04-20 08:42:42 +020039 }
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*)
Heiko Schocher9acb6262006-04-20 08:42:42 +020047 }
48 _edata = .;
49 PROVIDE (edata = .);
50
stany MARCEL25ceb272011-10-14 04:38:01 +000051 . = .;
Heiko Schocher9acb6262006-04-20 08:42:42 +020052
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
stany MARCEL25ceb272011-10-14 04:38:01 +000058 . = .;
Heiko Schocher9acb6262006-04-20 08:42:42 +020059 __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) :
Heiko Schocher9acb6262006-04-20 08:42:42 +020072 {
73 _sbss = .;
stany MARCEL25ceb272011-10-14 04:38:01 +000074 *(.bss*)
75 *(.sbss*)
Heiko Schocher9acb6262006-04-20 08:42:42 +020076 *(COMMON)
77 . = ALIGN(4);
78 _ebss = .;
79 }
Simon Glass3929fb02013-03-14 06:54:53 +000080 __bss_end = . ;
Heiko Schocher9acb6262006-04-20 08:42:42 +020081 PROVIDE (end = .);
82}