From patchwork Fri Jun 14 15:29:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 166831 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2201149ilk; Fri, 14 Jun 2019 08:29:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzReQw646iyB+MraHcGZ5sPqFd9U7pgC32TQkjbKu/Lm3tqKL8ScRSHZuKBOebO26jCqDMY X-Received: by 2002:a65:668e:: with SMTP id b14mr32058101pgw.407.1560526188264; Fri, 14 Jun 2019 08:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560526188; cv=none; d=google.com; s=arc-20160816; b=R2n3fucmFDcx9grpPMp2luU/i8kTZgw+5EkI3lXEpRB+cimdwqSLtBI6Edy/xgWslP GMYaDKDQEG2OxAbC5M8qqO6oCxuRSeVqkvo/O7rTGQ8KzDO5V/15bTvdHlqVa4/9zfra xFDlTcx8Crl8yg3YQs0SFaTTg5GrPovV6UZUK7GBWQatE7mX+k91v5vh2In5iXE0ByAi 42YyZMEEpGtlKSaMA5oXNQngr7XK9wgwZXqthen98/3QCEgXAy7JkwA+d1DW/dz6SLmQ PO1/JFVx1fjfej8OQb5C+7JIkOxgXNWmNoD4rZQM6uaPmv5Xj/cEObdTaUpLFevy//ZS WICw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-subscribe:list-unsubscribe:list-id:precedence:mailing-list :dkim-signature:domainkey-signature; bh=N7oA40s05WMR/xv+6FK6Kn/WtyYR12O0c9ArRQALLGs=; b=bbL+wBZsTvJInooldZShvvVrt1fErWDtDxxCKNENNyLSIX8ABPdhzx3oHX1DNIM9FQ 6WN0RIfmpl3Gs2TxFxzQS9EDL3h9r3apZgNBvhF/WNLmgOAKgNl6rszbnxTtLsDAh6xl q36+bFyG0irObGBVUVekDJ6bvBxtfGa0gxuLpSAEF2NON5HpqhT9eAJ89W1nVDAuRkPI ktxvgnbg1azRjTjpndb7UciPr4EMs5rVBsg6gMAiKWq5uT2fZMNh/06ffdN0PCiu2uUa M/Oa9x4tP5HXYK1JNVApUcN5VqDmJN5jIP7eOX/wukTa9eh+OkPqGf8ZfFvjLkapgokH dL7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=NBG2XsWx; dkim=pass header.i=@linaro.org header.s=google header.b=NQw5sizp; spf=pass (google.com: domain of libc-alpha-return-102737-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-102737-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id g125si2682709pfb.232.2019.06.14.08.29.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jun 2019 08:29:48 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-102737-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=NBG2XsWx; dkim=pass header.i=@linaro.org header.s=google header.b=NQw5sizp; spf=pass (google.com: domain of libc-alpha-return-102737-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-102737-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=PZTMokWh+8wcGNjJmQ7Fe6Cn2NbzOsg 83gdJxSGworVqE1b7GVH6pNCVoEtYeVf9vyrD9k5wuJH8Pvi49rzfXQDbwaUkNKr +g+BexZwkiASzouq4K6PRGguq1RXxNhW7lHIaL9gPdMUUKvw9kDxleZWvIgDOi+P jIp02zzJ8pmo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=sbkwnyNxAc1OmuiGqfm5TyDlKLs=; b=NBG2X sWxnR+Jp/9GZdy8sddfJTGV8AvOGhpMgrlN8rVs49hRFv7tybFPMv/digwwJtm8B NlTz2QPGrXmueADLqey0ZSKB+fhCe7e6kcosLKt6UdZJL59uAWMy+W1xFLQnjCug AAhKkyK2NR/VeeD7EK3Ho4HrJoY/zO3RUoLWKc= Received: (qmail 116945 invoked by alias); 14 Jun 2019 15:29:20 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 116847 invoked by uid 89); 14 Jun 2019 15:29:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_JMF_BR, SPF_PASS autolearn=ham version=3.3.1 spammy=2014 X-HELO: mail-vs1-f66.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=N7oA40s05WMR/xv+6FK6Kn/WtyYR12O0c9ArRQALLGs=; b=NQw5sizpWftPQCqhUXWGb4+TQfvFaMeMBjXaQ0Y8RbVTxh6fyoGvxq8i3YAyCABzaj 5HFJrAT6c2nbljpQXCWgCADXod/vnxsy66I30syU5UcqhsJ61uGVqr1xqfNu9bygiFwK tHQYtmQviC81i8TVla5tKDD3MUvbiWn6+vxTIwPrTPrcG9yn6XdkSXoiIaKfAAKDyYsU J4x2dkgTRRe9mOW9NBD5bvry0hscd4I8x84i10rc9fKYXnbLsSTQZgVlw0w60tXVVRXm SBlR6aYB1mWYwamfroL73QTI7ycqtTawB8i3JSBECLni4JKo4Yqara8eBGwyRAZhCnBw 4hlw== Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 04/12] sparc: Enable VDSO for static linking Date: Fri, 14 Jun 2019 12:29:00 -0300 Message-Id: <20190614152908.8101-4-adhemerval.zanella@linaro.org> In-Reply-To: <20190614152908.8101-1-adhemerval.zanella@linaro.org> References: <20190614152908.8101-1-adhemerval.zanella@linaro.org> Checked on sparc64-linux-gnu and sparcv9-linux-gnu. [BZ #19767] * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED. * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL): Define. --- sysdeps/unix/sysv/linux/sparc/init-first.c | 8 +++----- sysdeps/unix/sysv/linux/sparc/libc-vdso.h | 6 +----- sysdeps/unix/sysv/linux/sparc/sysdep.h | 3 +++ 3 files changed, 7 insertions(+), 10 deletions(-) -- 2.17.1 diff --git a/sysdeps/unix/sysv/linux/sparc/init-first.c b/sysdeps/unix/sysv/linux/sparc/init-first.c index de83321713..643d6c7c88 100644 --- a/sysdeps/unix/sysv/linux/sparc/init-first.c +++ b/sysdeps/unix/sysv/linux/sparc/init-first.c @@ -17,9 +17,8 @@ License along with the GNU C Library; if not, see . */ -#ifdef SHARED -# include -# include +#include +#include long int (*VDSO_SYMBOL (gettimeofday)) (struct timeval *, void *) attribute_hidden; @@ -40,7 +39,6 @@ _libc_vdso_platform_setup (void) VDSO_SYMBOL (clock_gettime) = p; } -# define VDSO_SETUP _libc_vdso_platform_setup -#endif +#define VDSO_SETUP _libc_vdso_platform_setup #include diff --git a/sysdeps/unix/sysv/linux/sparc/libc-vdso.h b/sysdeps/unix/sysv/linux/sparc/libc-vdso.h index 4009b00a28..d20afcdf04 100644 --- a/sysdeps/unix/sysv/linux/sparc/libc-vdso.h +++ b/sysdeps/unix/sysv/linux/sparc/libc-vdso.h @@ -20,14 +20,10 @@ #ifndef _LIBC_VDSO_H #define _LIBC_VDSO_H -#ifdef SHARED - -# include +#include extern long int (*VDSO_SYMBOL(gettimeofday)) (struct timeval *, void *) attribute_hidden; extern long int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *); -#endif - #endif /* _LIBC_VDSO_H */ diff --git a/sysdeps/unix/sysv/linux/sparc/sysdep.h b/sysdeps/unix/sysv/linux/sparc/sysdep.h index 981b2a26b7..fc4053c5ce 100644 --- a/sysdeps/unix/sysv/linux/sparc/sysdep.h +++ b/sysdeps/unix/sysv/linux/sparc/sysdep.h @@ -19,6 +19,9 @@ #ifndef _LINUX_SPARC_SYSDEP_H #define _LINUX_SPARC_SYSDEP_H 1 +/* Always enable vsyscalls on sparc */ +#define ALWAYS_USE_VSYSCALL 1 + #include #include #include