x86 vDSO: generate vdso-syms.lds
[sfrench/cifs-2.6.git] / arch / x86 / vdso / vdso.lds.S
index 667d3245d972753f6b8e64480e6935706511eee7..d40d0e9061900a89c295b45c89a3e88d8f109ea8 100644 (file)
@@ -8,6 +8,16 @@
 
 #define VDSO_PRELINK 0xffffffffff700000
 
+/*
+ * Symbols we define here called VDSO* get their values into vdso-syms.lds
+ * and become visible to the kernel itself.
+ */
+VDSO64_PRELINK = VDSO_PRELINK;
+
+#define VEXTERN(x)     VDSO64_ ## x = vdso_ ## x;
+#include "vextern.h"
+#undef VEXTERN
+
 SECTIONS
 {
   . = VDSO_PRELINK + SIZEOF_HEADERS;