2 * Linker script for vDSO. This is an ELF shared object prelinked to
3 * its virtual address, and with only one read-only segment.
4 * This script controls its layout.
10 #include <asm/vdso32.h>
13 hpet_page = . - VDSO_OFFSET(VDSO_HPET_PAGE);
17 vvar = . - VDSO_OFFSET(VDSO_VVAR_PAGE);
19 /* Place all vvars at the offsets in asm/vvar.h. */
20 #define EMIT_VVAR(name, offset) vvar_ ## name = vvar + offset;
21 #define __VVAR_KERNEL_LDS
23 #undef __VVAR_KERNEL_LDS
29 .hash : { *(.hash) } :text
30 .gnu.hash : { *(.gnu.hash) }
31 .dynsym : { *(.dynsym) }
32 .dynstr : { *(.dynstr) }
33 .gnu.version : { *(.gnu.version) }
34 .gnu.version_d : { *(.gnu.version_d) }
35 .gnu.version_r : { *(.gnu.version_r) }
37 .note : { *(.note.*) } :text :note
39 .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
40 .eh_frame : { KEEP (*(.eh_frame)) } :text
42 .dynamic : { *(.dynamic) } :text :dynamic
44 .rodata : { *(.rodata*) } :text
55 .altinstructions : { *(.altinstructions) }
56 .altinstr_replacement : { *(.altinstr_replacement) }
59 * Align the actual code well away from the non-instruction data.
60 * This is the best thing for the I-cache.
64 .text : { *(.text*) } :text =0x90909090
73 * Very old versions of ld do not recognize this name token; use the constant.
75 #define PT_GNU_EH_FRAME 0x6474e550
78 * We must supply the ELF program headers explicitly to get just one
79 * PT_LOAD segment, and set the flags explicitly to make segments read-only.
83 text PT_LOAD FLAGS(5) FILEHDR PHDRS; /* PF_R|PF_X */
84 dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
85 note PT_NOTE FLAGS(4); /* PF_R */
86 eh_frame_hdr PT_GNU_EH_FRAME;
88 vvar_sect PT_NULL FLAGS(4); /* PF_R */
89 hpet_sect PT_NULL FLAGS(4); /* PF_R */