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