Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Zhi-zhou Zhang | 32afad7 | 2012-10-16 15:02:08 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2003 |
| 4 | * Wolfgang Denk Engineering, <wd@denx.de> |
Zhi-zhou Zhang | 32afad7 | 2012-10-16 15:02:08 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /* |
| 8 | OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-bigmips") |
| 9 | */ |
| 10 | OUTPUT_FORMAT("elf64-tradbigmips", "elf64-tradbigmips", "elf64-tradlittlemips") |
| 11 | OUTPUT_ARCH(mips) |
| 12 | SECTIONS |
| 13 | { |
| 14 | .text : |
| 15 | { |
| 16 | *(.text*) |
| 17 | } |
| 18 | |
| 19 | . = ALIGN(4); |
| 20 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
| 21 | |
| 22 | . = ALIGN(4); |
| 23 | .data : { *(.data*) } |
| 24 | |
| 25 | . = .; |
| 26 | _gp = ALIGN(16) + 0x7ff0; |
| 27 | |
| 28 | .got : { |
| 29 | __got_start = .; |
| 30 | *(.got) |
| 31 | __got_end = .; |
| 32 | } |
| 33 | |
| 34 | .sdata : { *(.sdata*) } |
| 35 | |
| 36 | . = ALIGN(4); |
| 37 | __bss_start = .; |
| 38 | .sbss (NOLOAD) : { *(.sbss*) } |
| 39 | .bss (NOLOAD) : { *(.bss*) . = ALIGN(4); } |
| 40 | |
| 41 | _end = .; |
| 42 | } |