blob: 3371c0a3ee243900e87c910d2e4f598472193007 [file] [log] [blame]
wdenkc6097192002-11-03 00:24:07 +00001/*
2 * Linker command file for the GEN860T board.
3 *
Wolfgang Denkcd0402a2010-11-20 15:07:45 +01004 * (C) Copyright 2000-2010
wdenkc6097192002-11-03 00:24:07 +00005 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
wdenkc6097192002-11-03 00:24:07 +00008 */
9
10OUTPUT_ARCH(powerpc)
wdenkc6097192002-11-03 00:24:07 +000011SECTIONS
12{
13 /*
14 * Read-only sections, merged into text segment:
15 */
16 . = + SIZEOF_HEADERS;
wdenkc6097192002-11-03 00:24:07 +000017 .text :
18 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010019 arch/powerpc/cpu/mpc8xx/start.o (.text*)
20 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
21
22 *(.text*)
wdenkc6097192002-11-03 00:24:07 +000023 }
24 _etext = .;
25 PROVIDE (etext = .);
26 .rodata :
27 {
Trent Piephof62fb992009-02-18 15:22:05 -080028 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenkc6097192002-11-03 00:24:07 +000029 }
wdenkc6097192002-11-03 00:24:07 +000030
31 /*
32 * Read-write section, merged into data segment:
33 */
34 . = (. + 0x00FF) & 0xFFFFFF00;
35 _erotext = .;
36 PROVIDE (erotext = .);
37 .reloc :
38 {
wdenkc6097192002-11-03 00:24:07 +000039 _GOT2_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010040 KEEP(*(.got2))
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020041 KEEP(*(.got))
42 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenkc6097192002-11-03 00:24:07 +000043 _FIXUP_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010044 KEEP(*(.fixup))
wdenkc6097192002-11-03 00:24:07 +000045 }
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020046 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenkc6097192002-11-03 00:24:07 +000047 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
48
49 .data :
50 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010051 *(.data*)
52 *(.sdata*)
wdenkc6097192002-11-03 00:24:07 +000053 }
54 _edata = .;
55 PROVIDE (edata = .);
56
Wolfgang Denk807d5d72005-08-31 12:28:00 +020057 . = .;
wdenk8bde7f72003-06-27 21:31:46 +000058
Marek Vasut55675142012-10-12 10:27:03 +000059 . = ALIGN(4);
60 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000061 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000062 }
63
wdenk8bde7f72003-06-27 21:31:46 +000064
Wolfgang Denk807d5d72005-08-31 12:28:00 +020065 . = .;
wdenkc6097192002-11-03 00:24:07 +000066 __start___ex_table = .;
67 __ex_table : { *(__ex_table) }
68 __stop___ex_table = .;
69
70 . = ALIGN(256);
71 __init_begin = .;
72 .text.init : { *(.text.init) }
73 .data.init : { *(.data.init) }
74 . = ALIGN(256);
75 __init_end = .;
76
77 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010078 .bss (NOLOAD) :
wdenkc6097192002-11-03 00:24:07 +000079 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010080 *(.bss*)
81 *(.sbss*)
wdenkc6097192002-11-03 00:24:07 +000082 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053083 . = ALIGN(4);
wdenkc6097192002-11-03 00:24:07 +000084 }
Simon Glass3929fb02013-03-14 06:54:53 +000085 __bss_end = . ;
wdenkc6097192002-11-03 00:24:07 +000086 PROVIDE (end = .);
87}