^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) 2009 Thomas Chou <thomas@wytron.com.tw>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #include <asm-generic/vmlinux.lds.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) OUTPUT_FORMAT("elf32-littlenios2", "elf32-littlenios2", "elf32-littlenios2")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) OUTPUT_ARCH(nios)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) ENTRY(_start) /* Defined in head.S */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) SECTIONS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) . = (CONFIG_NIOS2_MEM_BASE + CONFIG_NIOS2_BOOT_LINK_OFFSET) | \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) CONFIG_NIOS2_KERNEL_REGION_BASE;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) _text = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) .text : { *(.text) } = 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) .rodata : { *(.rodata) *(.rodata.*) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) _etext = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) . = ALIGN(32 / 8);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) .data : { *(.data) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) . = ALIGN(32 / 8);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) _got = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) .got : {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) *(.got.plt)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) *(.igot.plt)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) *(.got)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) *(.igot)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) _egot = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) _edata = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) . = ALIGN(32 / 8);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) __bss_start = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) .bss : { *(.bss) *(.sbss) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) . = ALIGN(32 / 8);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) _ebss = .;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) end = . ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) _end = . ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) got_len = (_egot - _got);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) }