blob: 163d6efefd8bc4287681e433fbb9fb5167a4c883 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenk874ac262003-07-24 23:38:38 +00002/*
3 * (C) Copyright 2003
4 * Wolfgang Denk Engineering, <wd@denx.de>
wdenk874ac262003-07-24 23:38:38 +00005 */
6
7/*
8OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-bigmips")
9*/
Xiangfu Liu12ba80a2010-08-09 23:13:43 +080010OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips")
wdenk874ac262003-07-24 23:38:38 +000011OUTPUT_ARCH(mips)
12SECTIONS
13{
14 .text :
15 {
Daniel Schwierzeck089f2a12011-04-15 17:16:44 +020016 *(.text*)
wdenk874ac262003-07-24 23:38:38 +000017 }
18
19 . = ALIGN(4);
Trent Piepho4438e5e2009-02-18 15:22:05 -080020 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
wdenk874ac262003-07-24 23:38:38 +000021
22 . = ALIGN(4);
Daniel Schwierzeck089f2a12011-04-15 17:16:44 +020023 .data : { *(.data*) }
wdenk874ac262003-07-24 23:38:38 +000024
Shinya Kuribayashidc8daf02007-10-21 10:55:37 +090025 . = .;
26 _gp = ALIGN(16) + 0x7ff0;
wdenk874ac262003-07-24 23:38:38 +000027
Shinya Kuribayashi20e1d522007-10-21 10:55:36 +090028 .got : {
29 __got_start = .;
30 *(.got)
31 __got_end = .;
32 }
wdenk874ac262003-07-24 23:38:38 +000033
Daniel Schwierzeck089f2a12011-04-15 17:16:44 +020034 .sdata : { *(.sdata*) }
wdenk874ac262003-07-24 23:38:38 +000035
36 . = ALIGN(4);
wdenk2fb73902004-04-12 16:12:49 +000037 __bss_start = .;
Daniel Schwierzeck089f2a12011-04-15 17:16:44 +020038 .sbss (NOLOAD) : { *(.sbss*) }
39 .bss (NOLOAD) : { *(.bss*) . = ALIGN(4); }
wdenk2fb73902004-04-12 16:12:49 +000040
Wolfgang Denkcbaa1f52011-03-29 14:34:50 +020041 _end = .;
wdenk874ac262003-07-24 23:38:38 +000042}