1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22#include <linux/const.h>
23#include <asm/page.h>
24#include <asm/vdso.h>
25
26OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64", "elf64-littleaarch64")
27OUTPUT_ARCH(aarch64)
28
29SECTIONS
30{
31 PROVIDE(_vdso_data = . - PAGE_SIZE);
32 . = VDSO_LBASE + SIZEOF_HEADERS;
33
34 .hash : { *(.hash) } :text
35 .gnu.hash : { *(.gnu.hash) }
36 .dynsym : { *(.dynsym) }
37 .dynstr : { *(.dynstr) }
38 .gnu.version : { *(.gnu.version) }
39 .gnu.version_d : { *(.gnu.version_d) }
40 .gnu.version_r : { *(.gnu.version_r) }
41
42 .note : { *(.note.*) } :text :note
43
44 . = ALIGN(16);
45
46 .text : { *(.text*) } :text =0xd503201f
47 PROVIDE (__etext = .);
48 PROVIDE (_etext = .);
49 PROVIDE (etext = .);
50
51 .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
52 .eh_frame : { KEEP (*(.eh_frame)) } :text
53
54 .dynamic : { *(.dynamic) } :text :dynamic
55
56 .rodata : { *(.rodata*) } :text
57
58 _end = .;
59 PROVIDE(end = .);
60
61 /DISCARD/ : {
62 *(.note.GNU-stack)
63 *(.data .data.* .gnu.linkonce.d.* .sdata*)
64 *(.bss .sbss .dynbss .dynsbss)
65 }
66}
67
68
69
70
71
72PHDRS
73{
74 text PT_LOAD FLAGS(5) FILEHDR PHDRS;
75 dynamic PT_DYNAMIC FLAGS(4);
76 note PT_NOTE FLAGS(4);
77 eh_frame_hdr PT_GNU_EH_FRAME;
78}
79
80
81
82
83VERSION
84{
85 LINUX_2.6.39 {
86 global:
87 __kernel_rt_sigreturn;
88 __kernel_gettimeofday;
89 __kernel_clock_gettime;
90 __kernel_clock_getres;
91 local: *;
92 };
93}
94
95
96
97
98VDSO_sigtramp = __kernel_rt_sigreturn;
99