From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933665AbeALM5p (ORCPT + 1 other); Fri, 12 Jan 2018 07:57:45 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:37995 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933357AbeALM5n (ORCPT ); Fri, 12 Jan 2018 07:57:43 -0500 X-Google-Smtp-Source: ACJfBotEuMT2B064CAR0zhETJ6yz7bAgF4VwUyM3UYwwgMAFFg7Ma7TRv/MEvMXUEXpg/sZVDw7nQQ== Date: Fri, 12 Jan 2018 13:57:39 +0100 From: Ingo Molnar To: Andy Lutomirski Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , Kees Cook , Peter Zijlstra , Greg Kroah-Hartman , Hugh Dickins , stable@vger.kernel.org Subject: Re: [PATCH] selftests/x86: Add test_vsyscall Message-ID: <20180112125739.cl6jlm5cjvvg2i6f@gmail.com> References: <2b9c5a174c1d60fd7774461d518aa75598b1d8fd.1515719552.git.luto@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2b9c5a174c1d60fd7774461d518aa75598b1d8fd.1515719552.git.luto@kernel.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: * Andy Lutomirski wrote: > tools/testing/selftests/x86/Makefile | 2 +- > tools/testing/selftests/x86/test_vsyscall.c | 500 ++++++++++++++++++++++++++++ > 2 files changed, 501 insertions(+), 1 deletion(-) > create mode 100644 tools/testing/selftests/x86/test_vsyscall.c Hm, it doesn't even build here, on Ubuntu latest (Artful): triton:~/tip/tools/testing/selftests/x86> make test_vsyscall gcc -O2 -g -std=gnu99 -pthread -Wall -no-pie test_vsyscall.c -o test_vsyscall /tmp/ccKyelfb.o: In function `init_vdso': /home/mingo/tip/tools/testing/selftests/x86/test_vsyscall.c:68: undefined reference to `dlopen' /home/mingo/tip/tools/testing/selftests/x86/test_vsyscall.c:76: undefined reference to `dlsym' /home/mingo/tip/tools/testing/selftests/x86/test_vsyscall.c:80: undefined reference to `dlsym' /home/mingo/tip/tools/testing/selftests/x86/test_vsyscall.c:84: undefined reference to `dlsym' /home/mingo/tip/tools/testing/selftests/x86/test_vsyscall.c:88: undefined reference to `dlsym' /home/mingo/tip/tools/testing/selftests/x86/test_vsyscall.c:70: undefined reference to `dlopen' collect2: error: ld returned 1 exit status : recipe for target 'test_vsyscall' failed make: *** [test_vsyscall] Error 1 Thanks, Ingo