From 20e2fc42312f960f497ac2d617e3742754e1fa5e Mon Sep 17 00:00:00 2001 From: Vincenzo Frascino Date: Mon, 4 Nov 2019 11:59:59 +0100 Subject: ARM: 8930/1: Add support for generic vDSO The arm vDSO library requires some adaptations to take advantage of the newly introduced generic vDSO library. Introduce the following changes: - Modification vdso.c to be compliant with the common vdso datapage - Use of lib/vdso for gettimeofday - Implementation of elf note Signed-off-by: Vincenzo Frascino Signed-off-by: Russell King --- arch/arm/vdso/note.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 arch/arm/vdso/note.c (limited to 'arch/arm/vdso/note.c') diff --git a/arch/arm/vdso/note.c b/arch/arm/vdso/note.c new file mode 100644 index 000000000000..eff5bf9efb8b --- /dev/null +++ b/arch/arm/vdso/note.c @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2012-2018 ARM Limited + * + * This supplies .note.* sections to go into the PT_NOTE inside the vDSO text. + * Here we can supply some information useful to userland. + */ + +#include +#include +#include +#include + +ELFNOTE32("Linux", 0, LINUX_VERSION_CODE); +BUILD_SALT; -- cgit