.. | .. |
---|
7 | 7 | * This script controls its layout. |
---|
8 | 8 | */ |
---|
9 | 9 | |
---|
10 | | -#if defined(BUILD_VDSO64) |
---|
11 | | -# define SHDR_SIZE 64 |
---|
12 | | -#elif defined(BUILD_VDSO32) || defined(BUILD_VDSOX32) |
---|
13 | | -# define SHDR_SIZE 40 |
---|
14 | | -#else |
---|
15 | | -# error unknown VDSO target |
---|
16 | | -#endif |
---|
17 | | - |
---|
18 | | -#define NUM_FAKE_SHDRS 13 |
---|
19 | | - |
---|
20 | 10 | SECTIONS |
---|
21 | 11 | { |
---|
22 | 12 | /* |
---|
.. | .. |
---|
26 | 16 | * segment. |
---|
27 | 17 | */ |
---|
28 | 18 | |
---|
29 | | - vvar_start = . - 3 * PAGE_SIZE; |
---|
30 | | - vvar_page = vvar_start; |
---|
| 19 | + vvar_start = . - 4 * PAGE_SIZE; |
---|
| 20 | + vvar_page = vvar_start; |
---|
31 | 21 | |
---|
32 | 22 | /* Place all vvars at the offsets in asm/vvar.h. */ |
---|
33 | 23 | #define EMIT_VVAR(name, offset) vvar_ ## name = vvar_page + offset; |
---|
34 | | -#define __VVAR_KERNEL_LDS |
---|
35 | 24 | #include <asm/vvar.h> |
---|
36 | | -#undef __VVAR_KERNEL_LDS |
---|
37 | 25 | #undef EMIT_VVAR |
---|
38 | 26 | |
---|
39 | 27 | pvclock_page = vvar_start + PAGE_SIZE; |
---|
40 | 28 | hvclock_page = vvar_start + 2 * PAGE_SIZE; |
---|
| 29 | + timens_page = vvar_start + 3 * PAGE_SIZE; |
---|
| 30 | + |
---|
| 31 | +#undef _ASM_X86_VVAR_H |
---|
| 32 | + /* Place all vvars in timens too at the offsets in asm/vvar.h. */ |
---|
| 33 | +#define EMIT_VVAR(name, offset) timens_ ## name = timens_page + offset; |
---|
| 34 | +#include <asm/vvar.h> |
---|
| 35 | +#undef EMIT_VVAR |
---|
41 | 36 | |
---|
42 | 37 | . = SIZEOF_HEADERS; |
---|
43 | 38 | |
---|
.. | .. |
---|
60 | 55 | *(.bss*) |
---|
61 | 56 | *(.dynbss*) |
---|
62 | 57 | *(.gnu.linkonce.b.*) |
---|
63 | | - |
---|
64 | | - /* |
---|
65 | | - * Ideally this would live in a C file, but that won't |
---|
66 | | - * work cleanly for x32 until we start building the x32 |
---|
67 | | - * C code using an x32 toolchain. |
---|
68 | | - */ |
---|
69 | | - VDSO_FAKE_SECTION_TABLE_START = .; |
---|
70 | | - . = . + NUM_FAKE_SHDRS * SHDR_SIZE; |
---|
71 | | - VDSO_FAKE_SECTION_TABLE_END = .; |
---|
72 | 58 | } :text |
---|
73 | 59 | |
---|
74 | | - .fake_shstrtab : { *(.fake_shstrtab) } :text |
---|
75 | | - |
---|
76 | | - |
---|
| 60 | + /* |
---|
| 61 | + * Discard .note.gnu.property sections which are unused and have |
---|
| 62 | + * different alignment requirement from vDSO note sections. |
---|
| 63 | + */ |
---|
| 64 | + /DISCARD/ : { |
---|
| 65 | + *(.note.gnu.property) |
---|
| 66 | + } |
---|
77 | 67 | .note : { *(.note.*) } :text :note |
---|
78 | 68 | |
---|
79 | 69 | .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr |
---|
.. | .. |
---|
87 | 77 | |
---|
88 | 78 | .text : { *(.text*) } :text =0x90909090, |
---|
89 | 79 | |
---|
90 | | - /* |
---|
91 | | - * At the end so that eu-elflint stays happy when vdso2c strips |
---|
92 | | - * these. A better implementation would avoid allocating space |
---|
93 | | - * for these. |
---|
94 | | - */ |
---|
95 | 80 | .altinstructions : { *(.altinstructions) } :text |
---|
96 | 81 | .altinstr_replacement : { *(.altinstr_replacement) } :text |
---|
97 | 82 | |
---|