[02/11] vdso/arm: Add vdso symbols from kernel

Submitted by Dmitry Safonov on May 22, 2019, 6:18 p.m.

Details

Message ID 20190522181825.15064-3-dima@arista.com
State New
Series "vdso: arm32 support"
Headers show

Commit Message

Dmitry Safonov May 22, 2019, 6:18 p.m.
Signed-off-by: Dmitry Safonov <dima@arista.com>
---
 criu/arch/arm/include/asm/vdso.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 criu/arch/arm/include/asm/vdso.h

Patch hide | download patch | download mbox

diff --git a/criu/arch/arm/include/asm/vdso.h b/criu/arch/arm/include/asm/vdso.h
new file mode 100644
index 000000000000..cf9d500bec75
--- /dev/null
+++ b/criu/arch/arm/include/asm/vdso.h
@@ -0,0 +1,17 @@ 
+#ifndef __CR_ASM_VDSO_H__
+#define __CR_ASM_VDSO_H__
+
+#include "asm/int.h"
+#include "asm-generic/vdso.h"
+
+/* This definition is used in pie/util-vdso.c to initialize the vdso symbol
+ * name string table 'vdso_symbols'
+ *
+ * Poke from kernel file arch/arm/vdso/vdso.lds.S
+ */
+#define VDSO_SYMBOL_MAX		2
+#define ARCH_VDSO_SYMBOLS			\
+	"__vdso_clock_gettime",		\
+	"__vdso_gettimeofday"
+
+#endif /* __CR_ASM_VDSO_H__ */