2 * Linker script for linux x86-64 replacement vdso.
4 * Copyright 2023 Linaro, Ltd.
6 * SPDX-License-Identifier: GPL-2.0-or-later
29 phdr PT_PHDR FLAGS(4) PHDRS;
30 load PT_LOAD FLAGS(7) FILEHDR PHDRS; /* FLAGS=RWX */
31 dynamic PT_DYNAMIC FLAGS(4);
32 eh_frame_hdr PT_GNU_EH_FRAME;
33 note PT_NOTE FLAGS(4);
40 * The following, including the FILEHDRS and PHDRS, are modified
41 * when we relocate the binary. We want them to be initially
42 * writable for the relocation; we'll force them read-only after.
44 .note : { *(.note*) } :load :note
45 .dynamic : { *(.dynamic) } :load :dynamic
46 .dynsym : { *(.dynsym) } :load
49 * There ought not be any real read-write data.
50 * But since we manipulated the segment layout,
51 * we have to put these sections somewhere.
62 .rodata : { *(.rodata*) }
64 .gnu.hash : { *(.gnu.hash) }
65 .dynstr : { *(.dynstr) }
66 .gnu.version : { *(.gnu.version) }
67 .gnu.version_d : { *(.gnu.version_d) }
68 .gnu.version_r : { *(.gnu.version_r) }
69 .eh_frame_hdr : { *(.eh_frame_hdr) } :load :eh_frame_hdr
70 .eh_frame : { *(.eh_frame) } :load
72 .text : { *(.text*) } :load =0x90909090