wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 1 | /* |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 2 | * (C) Copyright 2000 |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 | * | ||||
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 6 | */ |
7 | |||||
8 | OUTPUT_ARCH(m68k) | ||||
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 9 | |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 10 | SECTIONS |
11 | { | ||||
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 12 | .text : |
13 | { | ||||
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 14 | arch/m68k/cpu/mcf52x2/start.o (.text*) |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 15 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 16 | . = DEFINED(env_offset) ? env_offset : .; |
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 17 | common/env_embedded.o (.text) |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 18 | |
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 19 | *(.text*) |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 20 | } |
21 | _etext = .; | ||||
22 | PROVIDE (etext = .); | ||||
23 | .rodata : | ||||
24 | { | ||||
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 25 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 26 | } |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 27 | |
28 | /* Read-write section, merged into data segment: */ | ||||
29 | . = (. + 0x00FF) & 0xFFFFFF00; | ||||
30 | _erotext = .; | ||||
31 | PROVIDE (erotext = .); | ||||
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 32 | |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 33 | .reloc : |
34 | { | ||||
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 35 | __got_start = .; |
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 36 | KEEP(*(.got)) |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 37 | __got_end = .; |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 38 | _GOT2_TABLE_ = .; |
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 39 | KEEP(*(.got2)) |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 40 | _FIXUP_TABLE_ = .; |
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 41 | KEEP(*(.fixup)) |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 42 | } |
43 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; | ||||
44 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; | ||||
45 | |||||
46 | .data : | ||||
47 | { | ||||
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 48 | *(.data*) |
49 | *(.sdata*) | ||||
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 50 | } |
51 | _edata = .; | ||||
52 | PROVIDE (edata = .); | ||||
53 | |||||
Wolfgang Denk | 807d5d7 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 54 | . = .; |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 55 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 56 | . = ALIGN(4); |
57 | .u_boot_list : { | ||||
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 58 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 59 | } |
60 | |||||
Wolfgang Denk | 807d5d7 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 61 | . = .; |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 62 | __start___ex_table = .; |
63 | __ex_table : { *(__ex_table) } | ||||
64 | __stop___ex_table = .; | ||||
65 | |||||
66 | . = ALIGN(256); | ||||
67 | __init_begin = .; | ||||
68 | .text.init : { *(.text.init) } | ||||
69 | .data.init : { *(.data.init) } | ||||
70 | . = ALIGN(256); | ||||
71 | __init_end = .; | ||||
72 | |||||
73 | __bss_start = .; | ||||
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 74 | .bss (NOLOAD) : |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 75 | { |
76 | _sbss = .; | ||||
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 77 | *(.bss*) |
78 | *(.sbss*) | ||||
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 79 | *(COMMON) |
80 | . = ALIGN(4); | ||||
81 | _ebss = .; | ||||
82 | } | ||||
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 83 | __bss_end = . ; |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 84 | PROVIDE (end = .); |
85 | } |