From patchwork Fri Sep 1 18:00:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 808865 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-84062-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="GyvYT/kq"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xkRvT1qqnz9s3w for ; Sat, 2 Sep 2017 04:04:05 +1000 (AEST) 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=Jzm5YJtgb7io6Hega3mvBc+Btbx8BZ8 98N0Q6Ld3p7Alxqa0qeT1Xvn6mSfmzSykZ+feD6m9JI5qoedpnWiX82wURaZUbxJ M3xoVaRJyY6Zo54o4Oyd2lRooayyzKMghZYJnOgZG3MDGtw5hY1fgyZ6xITjaHpc gHKpQo/1gQ0o= 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=EQQ5s0XpMTCQJ1eUQSF9LNisE8c=; b=GyvYT /kqZCKmHwUQ9LR2fHybjwzqFipyY61vm+GKuxakUbb5jVww9HslKSTE4uQJE63qs PvoPyHkXjyxw4PAg9xvr9/T5oRiflFsQO5VmEB8uzwTpnmXgypBdVcbdd6FRDyNc oLEDD6CNdnPWXrxdSIYAcZyyshHJBCeEo04bPg= Received: (qmail 85581 invoked by alias); 1 Sep 2017 18:00:53 -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 85436 invoked by uid 89); 1 Sep 2017 18:00:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=H*m:gmail X-HELO: mga06.intel.com X-ExtLoop1: 1 From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH 57/58] Hide internal __sched_setaffinity_new function [BZ #18822] Date: Fri, 1 Sep 2017 11:00:28 -0700 Message-Id: <20170901180029.9527-58-hjl.tools@gmail.com> In-Reply-To: <20170901180029.9527-1-hjl.tools@gmail.com> References: <20170901180029.9527-1-hjl.tools@gmail.com> Hide internal __sched_setaffinity_new function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * sysdeps/unix/sysv/linux/sched_setaffinity.c (__sched_setaffinity_new): Add libc_hidden_proto and libc_hidden_def. --- sysdeps/unix/sysv/linux/sched_setaffinity.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdeps/unix/sysv/linux/sched_setaffinity.c b/sysdeps/unix/sysv/linux/sched_setaffinity.c index 8854e72c67..9a40b581ae 100644 --- a/sysdeps/unix/sysv/linux/sched_setaffinity.c +++ b/sysdeps/unix/sysv/linux/sched_setaffinity.c @@ -26,6 +26,9 @@ #ifdef __NR_sched_setaffinity +extern int __sched_setaffinity_new (pid_t, size_t, const cpu_set_t *); +libc_hidden_proto (__sched_setaffinity_new) + int __sched_setaffinity_new (pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset) { @@ -38,6 +41,7 @@ __sched_setaffinity_new (pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset) return result; } +libc_hidden_def (__sched_setaffinity_new) versioned_symbol (libc, __sched_setaffinity_new, sched_setaffinity, GLIBC_2_3_4);