blob: 849f0aabf42e5f04e554ec182f5ce26ce5720498 [file] [log] [blame]
wdenk874ac262003-07-24 23:38:38 +00001/*
2 * (C) Copyright 2003
3 * Wolfgang Denk Engineering, <wd@denx.de>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenk874ac262003-07-24 23:38:38 +00006 */
7
8/*
9OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-bigmips")
10*/
Xiangfu Liu12ba80a2010-08-09 23:13:43 +080011OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips")
wdenk874ac262003-07-24 23:38:38 +000012OUTPUT_ARCH(mips)
13SECTIONS
14{
15 .text :
16 {
Daniel Schwierzeck089f2a12011-04-15 17:16:44 +020017 *(.text*)
wdenk874ac262003-07-24 23:38:38 +000018 }
19
20 . = ALIGN(4);
Trent Piepho4438e5e2009-02-18 15:22:05 -080021 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
wdenk874ac262003-07-24 23:38:38 +000022
23 . = ALIGN(4);
Daniel Schwierzeck089f2a12011-04-15 17:16:44 +020024 .data : { *(.data*) }
wdenk874ac262003-07-24 23:38:38 +000025
Shinya Kuribayashidc8daf02007-10-21 10:55:37 +090026 . = .;
27 _gp = ALIGN(16) + 0x7ff0;
wdenk874ac262003-07-24 23:38:38 +000028
Shinya Kuribayashi20e1d522007-10-21 10:55:36 +090029 .got : {
30 __got_start = .;
31 *(.got)
32 __got_end = .;
33 }
wdenk874ac262003-07-24 23:38:38 +000034
Daniel Schwierzeck089f2a12011-04-15 17:16:44 +020035 .sdata : { *(.sdata*) }
wdenk874ac262003-07-24 23:38:38 +000036
37 . = ALIGN(4);
wdenk2fb73902004-04-12 16:12:49 +000038 __bss_start = .;
Daniel Schwierzeck089f2a12011-04-15 17:16:44 +020039 .sbss (NOLOAD) : { *(.sbss*) }
40 .bss (NOLOAD) : { *(.bss*) . = ALIGN(4); }
wdenk2fb73902004-04-12 16:12:49 +000041
Wolfgang Denkcbaa1f52011-03-29 14:34:50 +020042 _end = .;
wdenk874ac262003-07-24 23:38:38 +000043}