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