1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Author: Huacai Chen <chenhuacai@loongson.cn>
4 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
7 OUTPUT_FORMAT("elf64-loongarch", "elf64-loongarch", "elf64-loongarch")
16 .hash : { *(.hash) } :text
17 .gnu.hash : { *(.gnu.hash) }
18 .dynsym : { *(.dynsym) }
19 .dynstr : { *(.dynstr) }
20 .gnu.version : { *(.gnu.version) }
21 .gnu.version_d : { *(.gnu.version_d) }
22 .gnu.version_r : { *(.gnu.version_r) }
24 .note : { *(.note.*) } :text :note
26 .text : { *(.text*) } :text
27 PROVIDE (__etext = .);
31 .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
32 .eh_frame : { KEEP (*(.eh_frame)) } :text
34 .dynamic : { *(.dynamic) } :text :dynamic
36 .rodata : { *(.rodata*) } :text
44 *(.data .data.* .gnu.linkonce.d.* .sdata*)
45 *(.bss .sbss .dynbss .dynsbss)
51 text PT_LOAD FLAGS(5) FILEHDR PHDRS; /* PF_R|PF_X */
52 dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
53 note PT_NOTE FLAGS(4); /* PF_R */
54 eh_frame_hdr PT_GNU_EH_FRAME;
71 * Make the sigreturn code visible to the kernel.
73 VDSO_sigreturn = __vdso_rt_sigreturn;