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