2 * SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2005-2017 Andes Technology Corporation
7 #include <linux/const.h>
17 .hash : { *(.hash) } :text
18 .gnu.hash : { *(.gnu.hash) }
19 .dynsym : { *(.dynsym) }
20 .dynstr : { *(.dynstr) }
21 .gnu.version : { *(.gnu.version) }
22 .gnu.version_d : { *(.gnu.version_d) }
23 .gnu.version_r : { *(.gnu.version_r) }
25 .note : { *(.note.*) } :text :note
28 .text : { *(.text*) } :text
30 .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
31 .eh_frame : { KEEP (*(.eh_frame)) } :text
33 .dynamic : { *(.dynamic) } :text :dynamic
35 .rodata : { *(.rodata*) } :text
40 *(.data .data.* .gnu.linkonce.d.* .sdata*)
41 *(.bss .sbss .dynbss .dynsbss)
46 * We must supply the ELF program headers explicitly to get just one
47 * PT_LOAD segment, and set the flags explicitly to make segments read-only.
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;
58 * This controls what symbols we export from the DSO.
64 __kernel_rt_sigreturn;
73 * Make the rt_sigreturn code visible to the kernel.
75 VDSO_rt_sigtramp = __kernel_rt_sigreturn;