diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:30:42 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:42 -0500 |
commit | 0249c9c1e7505c2b020bcc6deaf1e0415de9943e (patch) | |
tree | 1c2baf998881a020d512e52f1fce02678d75876d /arch/x86/vdso/vdso32 | |
parent | 0c2f51a7d2546f65e4198cccd6a56e2a8b857677 (diff) |
x86 vDSO: vdso32 build
This builds the 32-bit vDSO images in the arch/x86/vdso subdirectory.
Nothing uses the images yet, but this paves the way for consolidating
the vDSO build logic all in one place. The new images use a linker
script sharing the layout parts from vdso-layout.lds.S with the 64-bit
vDSO. A new vdso32-syms.lds is generated in the style of vdso-syms.lds.
Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/vdso/vdso32')
-rw-r--r-- | arch/x86/vdso/vdso32/vdso32.lds.S | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/x86/vdso/vdso32/vdso32.lds.S b/arch/x86/vdso/vdso32/vdso32.lds.S new file mode 100644 index 000000000000..976124bb5f92 --- /dev/null +++ b/arch/x86/vdso/vdso32/vdso32.lds.S | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * Linker script for 32-bit vDSO. | ||
3 | * We #include the file to define the layout details. | ||
4 | * Here we only choose the prelinked virtual address. | ||
5 | * | ||
6 | * This file defines the version script giving the user-exported symbols in | ||
7 | * the DSO. We can define local symbols here called VDSO* to make their | ||
8 | * values visible using the asm-x86/vdso.h macros from the kernel proper. | ||
9 | */ | ||
10 | |||
11 | #define VDSO_PRELINK 0 | ||
12 | #include "../vdso-layout.lds.S" | ||
13 | |||
14 | /* The ELF entry point can be used to set the AT_SYSINFO value. */ | ||
15 | ENTRY(__kernel_vsyscall); | ||
16 | |||
17 | /* | ||
18 | * This controls what userland symbols we export from the vDSO. | ||
19 | */ | ||
20 | VERSION | ||
21 | { | ||
22 | LINUX_2.5 { | ||
23 | global: | ||
24 | __kernel_vsyscall; | ||
25 | __kernel_sigreturn; | ||
26 | __kernel_rt_sigreturn; | ||
27 | local: *; | ||
28 | }; | ||
29 | } | ||
30 | |||
31 | /* | ||
32 | * Symbols we define here called VDSO* get their values into vdso32-syms.h. | ||
33 | */ | ||
34 | VDSO32_PRELINK = VDSO_PRELINK; | ||
35 | VDSO32_vsyscall = __kernel_vsyscall; | ||
36 | VDSO32_sigreturn = __kernel_sigreturn; | ||
37 | VDSO32_rt_sigreturn = __kernel_rt_sigreturn; | ||