Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 1 | /* |
2 | * (C) Copyright 2000 | ||||
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+ |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 6 | */ |
7 | |||||
8 | OUTPUT_ARCH(m68k) | ||||
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 9 | |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 10 | SECTIONS |
11 | { | ||||
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [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*) |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 15 | |
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 16 | *(.text*) |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 17 | } |
18 | _etext = .; | ||||
19 | PROVIDE (etext = .); | ||||
20 | .rodata : | ||||
21 | { | ||||
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 22 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 23 | } |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 24 | |
25 | /* Read-write section, merged into data segment: */ | ||||
26 | . = (. + 0x00FF) & 0xFFFFFF00; | ||||
27 | _erotext = .; | ||||
28 | PROVIDE (erotext = .); | ||||
29 | |||||
30 | .reloc : | ||||
31 | { | ||||
32 | __got_start = .; | ||||
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 33 | KEEP(*(.got)) |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 34 | __got_end = .; |
35 | _GOT2_TABLE_ = .; | ||||
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 36 | KEEP(*(.got2)) |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 37 | _FIXUP_TABLE_ = .; |
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 38 | KEEP(*(.fixup)) |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 39 | } |
40 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; | ||||
41 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; | ||||
42 | |||||
43 | .data : | ||||
44 | { | ||||
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 45 | *(.data*) |
46 | *(.sdata*) | ||||
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 47 | } |
48 | _edata = .; | ||||
49 | PROVIDE (edata = .); | ||||
50 | |||||
51 | . = .; | ||||
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 52 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 53 | . = ALIGN(4); |
54 | .u_boot_list : { | ||||
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 55 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 56 | } |
57 | |||||
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 58 | . = .; |
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 MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 71 | .bss (NOLOAD) : |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 72 | { |
73 | _sbss = .; | ||||
stany MARCEL | 25ceb27 | 2011-10-14 04:38:01 +0000 | [diff] [blame] | 74 | *(.bss*) |
75 | *(.sbss*) | ||||
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 76 | *(COMMON) |
77 | . = ALIGN(4); | ||||
78 | _ebss = .; | ||||
79 | } | ||||
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 80 | __bss_end = . ; |
Bartlomiej Sieka | daa6e41 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 81 | PROVIDE (end = .); |
82 | } |