1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2012 Regents of the University of California
12 PROVIDE(_vdso_data = . - __VVAR_PAGES * PAGE_SIZE);
14 PROVIDE(_timens_data = _vdso_data + PAGE_SIZE);
18 .hash : { *(.hash) } :text
19 .gnu.hash : { *(.gnu.hash) }
20 .dynsym : { *(.dynsym) }
21 .dynstr : { *(.dynstr) }
22 .gnu.version : { *(.gnu.version) }
23 .gnu.version_d : { *(.gnu.version_d) }
24 .gnu.version_r : { *(.gnu.version_r) }
26 .dynamic : { *(.dynamic) } :text :dynamic
29 *(.rodata .rodata.* .gnu.linkonce.r.*)
31 *(.data .data.* .gnu.linkonce.d.*)
33 *(.bss .bss.* .gnu.linkonce.b.*)
36 .note : { *(.note.*) } :text :note
38 .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
39 .eh_frame : { KEEP (*(.eh_frame)) } :text
42 * Text is well-separated from actual data: there's plenty of
43 * stuff that isn't used at runtime in between.
46 .text : { *(.text .text.*) } :text
55 * We must supply the ELF program headers explicitly to get just one
56 * PT_LOAD segment, and set the flags explicitly to make segments read-only.
60 text PT_LOAD FLAGS(5) FILEHDR PHDRS; /* PF_R|PF_X */
61 dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
62 note PT_NOTE FLAGS(4); /* PF_R */
63 eh_frame_hdr PT_GNU_EH_FRAME;
67 * This controls what symbols we export from the DSO.
74 #ifdef HAS_VGETTIMEOFDAY