Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 2 | /* |
Wolfgang Denk | 4a702a1 | 2010-11-25 12:15:34 +0100 | [diff] [blame] | 3 | * (C) Copyright 2006-2010 |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 5 | */ |
6 | |||||
7 | OUTPUT_ARCH(powerpc) | ||||
8 | SECTIONS | ||||
9 | { | ||||
10 | /* Read-only sections, merged into text segment: */ | ||||
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 11 | .text : |
12 | { | ||||
Wolfgang Denk | 4a702a1 | 2010-11-25 12:15:34 +0100 | [diff] [blame] | 13 | arch/powerpc/cpu/mpc83xx/start.o (.text*) |
14 | *(.text*) | ||||
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 15 | . = ALIGN(16); |
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 16 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 17 | } |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 18 | |
19 | /* Read-write section, merged into data segment: */ | ||||
20 | . = (. + 0x0FFF) & 0xFFFFF000; | ||||
21 | _erotext = .; | ||||
22 | PROVIDE (erotext = .); | ||||
23 | .reloc : | ||||
24 | { | ||||
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 25 | _GOT2_TABLE_ = .; |
Wolfgang Denk | 4a702a1 | 2010-11-25 12:15:34 +0100 | [diff] [blame] | 26 | KEEP(*(.got2)) |
Joakim Tjernlund | 42126a6 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 27 | KEEP(*(.got)) |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 28 | _FIXUP_TABLE_ = .; |
Wolfgang Denk | 4a702a1 | 2010-11-25 12:15:34 +0100 | [diff] [blame] | 29 | KEEP(*(.fixup)) |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 30 | } |
Joakim Tjernlund | 42126a6 | 2010-12-03 17:30:37 +0100 | [diff] [blame] | 31 | __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 32 | __fixup_entries = (. - _FIXUP_TABLE_) >> 2; |
33 | |||||
34 | .data : | ||||
35 | { | ||||
Wolfgang Denk | 4a702a1 | 2010-11-25 12:15:34 +0100 | [diff] [blame] | 36 | *(.data*) |
37 | *(.sdata*) | ||||
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 38 | } |
39 | _edata = .; | ||||
40 | PROVIDE (edata = .); | ||||
41 | |||||
42 | . = .; | ||||
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 43 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 44 | . = ALIGN(4); |
45 | .u_boot_list : { | ||||
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 46 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 47 | } |
48 | |||||
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 49 | |
50 | . = .; | ||||
51 | __start___ex_table = .; | ||||
52 | __ex_table : { *(__ex_table) } | ||||
53 | __stop___ex_table = .; | ||||
54 | |||||
Mario Six | 26f9b1a | 2019-01-28 09:36:23 +0100 | [diff] [blame^] | 55 | /* |
56 | * _end - This is end of u-boot.bin image. | ||||
57 | * dtb will be appended here to make u-boot-dtb.bin | ||||
58 | */ | ||||
59 | _end = .; | ||||
60 | |||||
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 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) : |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 70 | { |
Wolfgang Denk | 4a702a1 | 2010-11-25 12:15:34 +0100 | [diff] [blame] | 71 | *(.bss*) |
72 | *(.sbss*) | ||||
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 73 | *(COMMON) |
Selvamuthukumar | d2454ba | 2008-10-16 22:54:03 +0530 | [diff] [blame] | 74 | . = ALIGN(4); |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 75 | } |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 76 | __bss_end = . ; |
Grant Likely | 349053b | 2007-07-03 00:33:18 -0600 | [diff] [blame] | 77 | PROVIDE (end = .); |
78 | } | ||||
79 | ENTRY(_start) |