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