2 * Linker script for linux riscv replacement vdso.
4 * Copyright 2021 Linaro, Ltd.
6 * SPDX-License-Identifier: GPL-2.0-or-later
25 phdr PT_PHDR FLAGS(4) PHDRS;
26 load PT_LOAD FLAGS(7) FILEHDR PHDRS;
27 dynamic PT_DYNAMIC FLAGS(4);
28 eh_frame_hdr PT_GNU_EH_FRAME;
29 note PT_NOTE FLAGS(4);
34 * We can't prelink to any address without knowing something about
35 * the virtual memory space of the host, since that leaks over into
36 * the available memory space of the guest.
41 * The following, including the FILEHDRS and PHDRS, are modified
42 * when we relocate the binary. We want them to be initially
43 * writable for the relocation; we'll force them read-only after.
45 .note : { *(.note*) } :load :note
46 .dynamic : { *(.dynamic) } :load :dynamic
47 .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.
63 .rodata : { *(.rodata*) }
65 .gnu.hash : { *(.gnu.hash) }
66 .dynstr : { *(.dynstr) }
67 .gnu.version : { *(.gnu.version) }
68 .gnu.version_d : { *(.gnu.version_d) }
69 .gnu.version_r : { *(.gnu.version_r) }
70 .eh_frame_hdr : { *(.eh_frame_hdr) } :load :eh_frame_hdr
71 .eh_frame : { *(.eh_frame) } :load
73 .text : { *(.text*) } :load =0xd503201f