wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 1 | /* |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 2 | * (C) Copyright 2000-2010 |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 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+ |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 6 | */ |
7 | |||||
Wolfgang Denk | ff8faa4 | 2010-11-24 19:19:08 +0100 | [diff] [blame] | 8 | #include <config.h> |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 9 | OUTPUT_ARCH(powerpc) |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 10 | |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 11 | SECTIONS |
12 | { | ||||
13 | /* Read-only sections, merged into text segment: */ | ||||
14 | . = + SIZEOF_HEADERS; | ||||
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 15 | .text : |
16 | { | ||||
Wolfgang Denk | ff8faa4 | 2010-11-24 19:19:08 +0100 | [diff] [blame] | 17 | #ifdef CONFIG_MPC8260 |
18 | arch/powerpc/cpu/mpc8260/start.o (.text*) | ||||
19 | #else | ||||
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*) | ||||
Wolfgang Denk | ff8faa4 | 2010-11-24 19:19:08 +0100 | [diff] [blame] | 22 | #endif |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 23 | *(.text*) |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +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 | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 30 | } |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 31 | |
32 | /* Read-write section, merged into data segment: */ | ||||
33 | . = (. + 0x0FFF) & 0xFFFFF000; | ||||
34 | _erotext = .; | ||||
35 | PROVIDE (erotext = .); | ||||
36 | .reloc : | ||||
37 | { | ||||
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 38 | _GOT2_TABLE_ = .; |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 39 | KEEP(*(.got2)) |
Joakim Tjernlund | a65f8c8 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 40 | KEEP(*(.got)) |
41 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | ||||
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 42 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 43 | KEEP(*(.fixup)) |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 44 | } |
Joakim Tjernlund | a65f8c8 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 45 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 46 | __fixup_entries = (. - _FIXUP_TABLE_)>>2; |
47 | |||||
48 | .data : | ||||
49 | { | ||||
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 50 | *(.data*) |
51 | *(.sdata*) | ||||
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 52 | } |
53 | _edata = .; | ||||
54 | PROVIDE (edata = .); | ||||
55 | |||||
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 56 | . = .; |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 57 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 58 | . = ALIGN(4); |
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 | |||||
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 63 | |
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 64 | . = .; |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 65 | __start___ex_table = .; |
66 | __ex_table : { *(__ex_table) } | ||||
67 | __stop___ex_table = .; | ||||
68 | |||||
69 | . = ALIGN(4096); | ||||
70 | __init_begin = .; | ||||
71 | .text.init : { *(.text.init) } | ||||
72 | .data.init : { *(.data.init) } | ||||
73 | . = ALIGN(4096); | ||||
74 | __init_end = .; | ||||
75 | |||||
76 | __bss_start = .; | ||||
Wolfgang Denk | 828a978 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 77 | .bss (NOLOAD) : |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 78 | { |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 79 | *(.bss*) |
80 | *(.sbss*) | ||||
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 81 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 82 | . = ALIGN(4); |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 83 | } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 84 | __bss_end = . ; |
wdenk | 4a5b6a3 | 2001-04-28 17:59:11 +0000 | [diff] [blame] | 85 | PROVIDE (end = .); |
86 | } |