TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [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 | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 6 | */ |
7 | |||||
8 | OUTPUT_ARCH(m68k) | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 9 | |
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 10 | SECTIONS |
11 | { | ||||
12 | /* Read-only sections, merged into text segment: */ | ||||
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 13 | .text : |
14 | { | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 15 | arch/m68k/cpu/mcf52x2/start.o (.text*) |
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 16 | |
17 | . = DEFINED(env_offset) ? env_offset : .; | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 18 | common/env_embedded.o (.text*) |
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 19 | |
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 20 | *(.text*) |
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 21 | } |
22 | _etext = .; | ||||
23 | PROVIDE (etext = .); | ||||
24 | .rodata : | ||||
25 | { | ||||
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 26 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 27 | } |
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [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 | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 37 | KEEP(*(.got)) |
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 38 | __got_end = .; |
39 | _GOT2_TABLE_ = .; | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 40 | KEEP(*(.got2)) |
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 41 | _FIXUP_TABLE_ = .; |
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 42 | KEEP(*(.fixup)) |
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 43 | } |
44 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; | ||||
45 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; | ||||
46 | |||||
47 | .data : | ||||
48 | { | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 49 | *(.data*) |
50 | *(.sdata*) | ||||
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 51 | } |
52 | _edata = .; | ||||
53 | PROVIDE (edata = .); | ||||
54 | |||||
55 | . = .; | ||||
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 56 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 57 | . = ALIGN(4); |
58 | .u_boot_list : { | ||||
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 59 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 60 | } |
61 | |||||
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [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 : | ||||
76 | { | ||||
77 | _sbss = .; | ||||
Jason Jin | 6c0bf27 | 2011-08-22 17:24:45 +0800 | [diff] [blame] | 78 | *(.sbss*) |
79 | *(.bss*) | ||||
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 80 | *(COMMON) |
81 | . = ALIGN(4); | ||||
82 | _ebss = .; | ||||
83 | } | ||||
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 84 | __bss_end = . ; |
TsiChung Liew | 6d33c6a | 2008-07-23 17:11:47 -0500 | [diff] [blame] | 85 | PROVIDE (end = .); |
86 | } |