2 * Linker script for linux i386 replacement vdso.
4 * Copyright 2023 Linaro, Ltd.
6 * SPDX-License-Identifier: GPL-2.0-or-later
9 ENTRY(__kernel_vsyscall)
18 __vdso_clock_gettime64;
26 __kernel_rt_sigreturn;
32 phdr PT_PHDR FLAGS(4) PHDRS;
33 load PT_LOAD FLAGS(7) FILEHDR PHDRS; /* FLAGS=RWX */
34 dynamic PT_DYNAMIC FLAGS(4);
35 eh_frame_hdr PT_GNU_EH_FRAME;
36 note PT_NOTE FLAGS(4);
43 * The following, including the FILEHDRS and PHDRS, are modified
44 * when we relocate the binary. We want them to be initially
45 * writable for the relocation; we'll force them read-only after.
47 .note : { *(.note*) } :load :note
48 .dynamic : { *(.dynamic) } :load :dynamic
49 .dynsym : { *(.dynsym) } :load
52 * There ought not be any real read-write data.
53 * But since we manipulated the segment layout,
54 * we have to put these sections somewhere.
65 .rodata : { *(.rodata*) }
67 .gnu.hash : { *(.gnu.hash) }
68 .dynstr : { *(.dynstr) }
69 .gnu.version : { *(.gnu.version) }
70 .gnu.version_d : { *(.gnu.version_d) }
71 .gnu.version_r : { *(.gnu.version_r) }
72 .eh_frame_hdr : { *(.eh_frame_hdr) } :load :eh_frame_hdr
73 .eh_frame : { *(.eh_frame) } :load
75 .text : { *(.text*) } :load =0x90909090