Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 1 | /* |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 2 | * (C) Copyright 2001-2010 |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 | * | ||||
5 | * Modified by Yuli Barcohen <yuli@arabellasw.com> | ||||
6 | * | ||||
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 8 | */ |
9 | |||||
10 | OUTPUT_ARCH(powerpc) | ||||
11 | SECTIONS | ||||
12 | { | ||||
13 | /* Read-only sections, merged into text segment: */ | ||||
14 | . = + SIZEOF_HEADERS; | ||||
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 15 | .text : |
16 | { | ||||
Wolfgang Denk | cd0402a | 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*) | ||||
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 20 | . = ALIGN(16); |
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 21 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 22 | } |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 23 | |
24 | /* Read-write section, merged into data segment: */ | ||||
25 | . = (. + 0x0FFF) & 0xFFFFF000; | ||||
26 | _erotext = .; | ||||
27 | PROVIDE (erotext = .); | ||||
28 | .reloc : | ||||
29 | { | ||||
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 30 | _GOT2_TABLE_ = .; |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 31 | KEEP(*(.got2)) |
Joakim Tjernlund | 9d8fbd1 | 2011-04-20 14:22:59 +0200 | [diff] [blame] | 32 | KEEP(*(.got)) |
33 | PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); | ||||
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 34 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 35 | KEEP(*(.fixup)) |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 36 | } |
37 | __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2; | ||||
38 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; | ||||
39 | |||||
40 | .data : | ||||
41 | { | ||||
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 42 | *(.data*) |
43 | *(.sdata*) | ||||
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 44 | } |
45 | _edata = .; | ||||
46 | PROVIDE (edata = .); | ||||
47 | |||||
Wolfgang Denk | de7cf70 | 2009-06-04 00:31:07 +0200 | [diff] [blame] | 48 | . = .; |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 49 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 50 | . = ALIGN(4); |
51 | .u_boot_list : { | ||||
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 52 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 53 | } |
54 | |||||
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 55 | |
Wolfgang Denk | de7cf70 | 2009-06-04 00:31:07 +0200 | [diff] [blame] | 56 | . = .; |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [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 | 64134f0 | 2008-01-12 20:31:39 +0100 | [diff] [blame] | 69 | .bss (NOLOAD) : |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 70 | { |
Wolfgang Denk | cd0402a | 2010-11-20 15:07:45 +0100 | [diff] [blame] | 71 | *(.bss*) |
72 | *(.sbss*) | ||||
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 73 | *(COMMON) |
Selvamuthukumar | 9b827cf | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 74 | . = ALIGN(4); |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 75 | } |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 76 | __bss_end = . ; |
Wolfgang Denk | 84c960c | 2006-03-12 23:17:31 +0100 | [diff] [blame] | 77 | PROVIDE (end = .); |
78 | } | ||||
79 | ENTRY(_start) |