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