wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 1 | /* |
2 | * (C) Copyright 2001-2003 | ||||
3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | ||||
4 | * | ||||
5 | * Modified by Yuli Barcohen <yuli@arabellasw.com> | ||||
6 | * | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 8 | */ |
9 | |||||
10 | OUTPUT_ARCH(powerpc) | ||||
11 | SECTIONS | ||||
12 | { | ||||
13 | /* Read-only sections, merged into text segment: */ | ||||
14 | . = + SIZEOF_HEADERS; | ||||
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 15 | .text : |
16 | { | ||||
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 17 | arch/powerpc/cpu/mpc8xx/start.o (.text*) |
18 | arch/powerpc/cpu/mpc8xx/traps.o (.text*) | ||||
19 | *(.text*) | ||||
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 20 | . = ALIGN(16); |
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 21 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 22 | } |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 23 | |
24 | /* Read-write section, merged into data segment: */ | ||||
25 | . = (. + 0x0FFF) & 0xFFFFF000; | ||||
26 | _erotext = .; | ||||
27 | PROVIDE (erotext = .); | ||||
28 | .reloc : | ||||
29 | { | ||||
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 30 | _GOT2_TABLE_ = .; |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 31 | KEEP(*(.got2)) |
Joakim Tjernlund | a65f8c8 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 32 | KEEP(*(.got)) |
33 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | ||||
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 34 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 35 | KEEP(*(.fixup)) |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 36 | } |
Joakim Tjernlund | a65f8c8 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 37 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 38 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; |
39 | |||||
40 | .data : | ||||
41 | { | ||||
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 42 | *(.data*) |
43 | *(.sdata*) | ||||
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 44 | } |
45 | _edata = .; | ||||
46 | PROVIDE (edata = .); | ||||
47 | |||||
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 48 | . = .; |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 49 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 50 | . = ALIGN(4); |
51 | .u_boot_list : { | ||||
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 52 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 53 | } |
54 | |||||
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 55 | |
Wolfgang Denk | 5dd2c65 | 2005-08-31 12:28:00 +0200 | [diff] [blame] | 56 | . = .; |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 57 | __start___ex_table = .; |
58 | __ex_table : { *(__ex_table) } | ||||
59 | __stop___ex_table = .; | ||||
60 | |||||
61 | . = ALIGN(4096); | ||||
62 | __init_begin = .; | ||||
63 | .text.init : { *(.text.init) } | ||||
64 | .data.init : { *(.data.init) } | ||||
65 | . = ALIGN(4096); | ||||
66 | __init_end = .; | ||||
67 | |||||
68 | __bss_start = .; | ||||
Wolfgang Denk | 828a978 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 69 | .bss (NOLOAD) : |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 70 | { |
Wolfgang Denk | e71d99d | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 71 | *(.bss*) |
72 | *(.sbss*) | ||||
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 73 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 74 | . = ALIGN(4); |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 75 | } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 76 | __bss_end = . ; |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 77 | PROVIDE (end = .); |
78 | } | ||||
79 | ENTRY(_start) |