wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 1 | /* |
2 | * Linker command file for the GEN860T board when the environment is | ||||
3 | * stored in flash memory. | ||||
4 | * | ||||
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 5 | * (C) Copyright 2000-2010 |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 6 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
7 | * | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 9 | */ |
10 | |||||
11 | OUTPUT_ARCH(powerpc) | ||||
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 12 | SECTIONS |
13 | { | ||||
14 | /* | ||||
15 | * Read-only sections, merged into text segment: | ||||
16 | */ | ||||
17 | . = + SIZEOF_HEADERS; | ||||
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 18 | .text : |
19 | { | ||||
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 20 | arch/powerpc/cpu/mpc8xx/start.o (.text*) |
21 | arch/powerpc/cpu/mpc8xx/traps.o (.text*) | ||||
22 | |||||
23 | *(.text*) | ||||
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 24 | } |
25 | _etext = .; | ||||
26 | PROVIDE (etext = .); | ||||
27 | .rodata : | ||||
28 | { | ||||
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 29 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 30 | } |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 31 | |
32 | /* | ||||
33 | * Read-write section, merged into data segment: | ||||
34 | */ | ||||
35 | . = (. + 0x00FF) & 0xFFFFFF00; | ||||
36 | _erotext = .; | ||||
37 | PROVIDE (erotext = .); | ||||
38 | .reloc : | ||||
39 | { | ||||
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 40 | KEEP(*(.got)) |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 41 | _GOT2_TABLE_ = .; |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 42 | KEEP(*(.got2)) |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 43 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 44 | KEEP(*(.fixup)) |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 45 | } |
46 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; | ||||
47 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; | ||||
48 | |||||
49 | .data: | ||||
50 | { | ||||
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 51 | *(.data*) |
52 | *(.sdata*) | ||||
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 53 | } |
54 | _edata = .; | ||||
55 | PROVIDE (edata = .); | ||||
56 | |||||
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 57 | . = .; |
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 58 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 59 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 60 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 61 | } |
62 | |||||
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 63 | . = .; |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 64 | __start___ex_table = .; |
65 | __ex_table : { *(__ex_table) } | ||||
66 | __stop___ex_table = .; | ||||
67 | |||||
68 | . = ALIGN(256); | ||||
69 | __init_begin = .; | ||||
70 | .text.init : { *(.text.init) } | ||||
71 | .data.init : { *(.data.init) } | ||||
72 | . = ALIGN(256); | ||||
73 | __init_end = .; | ||||
74 | |||||
75 | __bss_start = .; | ||||
Wolfgang Denk | 828a978 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 76 | .bss (NOLOAD) : |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 77 | { |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 78 | *(.bss*) |
79 | *(.sbss*) | ||||
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 80 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 81 | . = ALIGN(4); |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 82 | } |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 83 | |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 84 | __bss_end = . ; |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 85 | PROVIDE (end = .); |
86 | |||||
87 | .ppcenv: | ||||
88 | { | ||||
89 | . = env_offset; | ||||
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 90 | common/env_embedded.o |
wdenk | 541a76d | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 91 | } |
92 | } |