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