TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [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+ |
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 6 | */ |
7 | |||||
8 | OUTPUT_ARCH(m68k) | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 9 | |
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 10 | SECTIONS |
11 | { | ||||
12 | /* Read-only sections, merged into text segment: */ | ||||
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 13 | .text : |
14 | { | ||||
Masahiro Yamada | e2906a5 | 2013-11-11 14:36:00 +0900 | [diff] [blame] | 15 | arch/m68k/cpu/mcf532x/start.o (.text*) |
16 | arch/m68k/cpu/mcf532x/built-in.o (.text*) | ||||
17 | arch/m68k/lib/built-in.o (.text*) | ||||
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 18 | |
19 | . = DEFINED(env_offset) ? env_offset : .; | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 20 | common/env_embedded.o (.text*) |
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 21 | |
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 22 | *(.text*) |
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 23 | } |
24 | _etext = .; | ||||
25 | PROVIDE (etext = .); | ||||
26 | .rodata : | ||||
27 | { | ||||
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 28 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 29 | } |
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 30 | |
31 | /* Read-write section, merged into data segment: */ | ||||
32 | . = (. + 0x00FF) & 0xFFFFFF00; | ||||
33 | _erotext = .; | ||||
34 | PROVIDE (erotext = .); | ||||
35 | |||||
36 | .reloc : | ||||
37 | { | ||||
38 | __got_start = .; | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 39 | KEEP(*(.got)) |
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 40 | __got_end = .; |
41 | _GOT2_TABLE_ = .; | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 42 | KEEP(*(.got2)) |
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 43 | _FIXUP_TABLE_ = .; |
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 44 | KEEP(*(.fixup)) |
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 45 | } |
46 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; | ||||
47 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; | ||||
48 | |||||
49 | .data : | ||||
50 | { | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 51 | *(.data*) |
52 | *(.sdata*) | ||||
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 53 | } |
54 | _edata = .; | ||||
55 | PROVIDE (edata = .); | ||||
56 | |||||
57 | . = .; | ||||
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 58 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 59 | . = ALIGN(4); |
60 | .u_boot_list : { | ||||
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 61 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 62 | } |
63 | |||||
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 64 | . = .; |
65 | __start___ex_table = .; | ||||
66 | __ex_table : { *(__ex_table) } | ||||
67 | __stop___ex_table = .; | ||||
68 | |||||
69 | . = ALIGN(256); | ||||
70 | __init_begin = .; | ||||
71 | .text.init : { *(.text.init) } | ||||
72 | .data.init : { *(.data.init) } | ||||
73 | . = ALIGN(256); | ||||
74 | __init_end = .; | ||||
75 | |||||
76 | __bss_start = .; | ||||
77 | .bss (NOLOAD) : | ||||
78 | { | ||||
79 | _sbss = .; | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 80 | *(.sbss*) |
81 | *(.bss*) | ||||
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 82 | *(COMMON) |
83 | . = ALIGN(4); | ||||
84 | _ebss = .; | ||||
85 | } | ||||
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 86 | __bss_end = . ; |
TsiChung Liew | 536e7da | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 87 | PROVIDE (end = .); |
88 | } |