blob: 58467c2cc8c44a79d973c51be1dbd570199fe24b [file] [log] [blame]
Joe Hammane0bdea32007-08-09 15:10:53 -05001/*
2 * Copyright 2006, 2007 Freescale Semiconductor, Inc.
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Joe Hammane0bdea32007-08-09 15:10:53 -05005 */
6
7OUTPUT_ARCH(powerpc)
8
9SECTIONS
10{
11
12 /* Read-only sections, merged into text segment: */
Joe Hammane0bdea32007-08-09 15:10:53 -050013 .text :
14 {
Wolfgang Denk1f759f12010-11-22 08:31:41 +010015 arch/powerpc/cpu/mpc86xx/start.o (.text*)
16 arch/powerpc/cpu/mpc86xx/traps.o (.text*)
Peter Tysereb168742010-09-29 14:05:55 -050017 *(.text*)
Joe Hammane0bdea32007-08-09 15:10:53 -050018 }
19 _etext = .;
20 PROVIDE (etext = .);
21 .rodata :
22 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080023 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Joe Hammane0bdea32007-08-09 15:10:53 -050024 }
Joe Hammane0bdea32007-08-09 15:10:53 -050025
26 /* Read-write section, merged into data segment: */
27 . = (. + 0x00FF) & 0xFFFFFF00;
28 _erotext = .;
29 PROVIDE (erotext = .);
30 .reloc :
31 {
Joe Hammane0bdea32007-08-09 15:10:53 -050032 _GOT2_TABLE_ = .;
Peter Tysereb168742010-09-29 14:05:55 -050033 KEEP(*(.got2))
Joakim Tjernlund42126a62010-12-03 17:30:37 +010034 KEEP(*(.got))
35 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
Joe Hammane0bdea32007-08-09 15:10:53 -050036 _FIXUP_TABLE_ = .;
Peter Tysereb168742010-09-29 14:05:55 -050037 KEEP(*(.fixup))
Joe Hammane0bdea32007-08-09 15:10:53 -050038 }
Joakim Tjernlund42126a62010-12-03 17:30:37 +010039 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Joe Hammane0bdea32007-08-09 15:10:53 -050040 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
41
42 .data :
43 {
Peter Tysereb168742010-09-29 14:05:55 -050044 *(.data*)
45 *(.sdata*)
Joe Hammane0bdea32007-08-09 15:10:53 -050046 }
47 _edata = .;
48 PROVIDE (edata = .);
49
50 . = .;
Joe Hammane0bdea32007-08-09 15:10:53 -050051
Marek Vasut607092a2012-10-12 10:27:03 +000052 . = ALIGN(4);
53 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000054 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000055 }
56
Joe Hammane0bdea32007-08-09 15:10:53 -050057 . = .;
58 __start___ex_table = .;
59 __ex_table : { *(__ex_table) }
60 __stop___ex_table = .;
61
62 . = ALIGN(256);
63 __init_begin = .;
64 .text.init : { *(.text.init) }
65 .data.init : { *(.data.init) }
66 . = ALIGN(256);
67 __init_end = .;
68
69 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010070 .bss (NOLOAD) :
Joe Hammane0bdea32007-08-09 15:10:53 -050071 {
Peter Tysereb168742010-09-29 14:05:55 -050072 *(.bss*)
Wolfgang Denk1f759f12010-11-22 08:31:41 +010073 *(.sbss*)
Joe Hammane0bdea32007-08-09 15:10:53 -050074 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053075 . = ALIGN(4);
Joe Hammane0bdea32007-08-09 15:10:53 -050076 }
Simon Glassed70c8f2013-03-14 06:54:53 +000077 __bss_end = . ;
Joe Hammane0bdea32007-08-09 15:10:53 -050078 PROVIDE (end = .);
79}