Message ID | 20240905134922.2463750-1-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp310197wrb; Thu, 5 Sep 2024 06:49:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBWO4eWzsJBqi6kBssjLoXpt8lKw5ISqAS3JVQYbN+Os1U2QEoElSvV+C6pufD14sYZdyjJg==@linaro.org X-Google-Smtp-Source: AGHT+IGo1XcbeQpyLVkHnMcR9zvvO7G00FKDrHvcnF7afgzXLp8teW8cu/T4xzpm+pkb9tsjVqde X-Received: by 2002:a05:6102:3706:b0:48f:db40:99e9 with SMTP id ada2fe7eead31-49a7772c098mr20861990137.0.1725544177802; Thu, 05 Sep 2024 06:49:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725544177; cv=pass; d=google.com; s=arc-20160816; b=LOtyHzUZ64seBaTjvHecpr9WiXEwpBqu94oCn+hYQloRuNSRo6C0M3DiO5ImME08N1 gDUhkiDN4V6ZaYGL9MSC2Bt1pzmbPJ2xv+YFQfqkctpm3+XTkSgROHgOOXqqOtHF6jwP yf/PSiwJR9/fnYhNirflZa7Whx2p6um7Qends+0lRs6ZEYaB435EQZh+kVvIwCLvxN9v 56gnu2siL+JpzZB6lzBQZCS86+FizpVR9IZLTqcezLb8hRfynpOQiRiQD+Q8NxJkTuCS q0++IDg5qCw2rFQGlf8iaVAGnwaRNuw5wCtY8sSbooNj/E/k6R4J8wFxMFQ+hw+dEGat X4jA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=soaQrEl0728Wvgj/gVHYMQr776iqr04XHGPMvMLJOjo=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=N4fzpnXBuLve7B4z9rkTWUWolLfA9WSWM3txDef1eLT561xge28w1ko8nkV+XEkt9C yUoqCYlaljEEEB07qCjJEW6WbOkU4mAo9/psENfSvyeYtmPLXVWA4ftHss/eUvr6gxxk BwB6j7uEGe7gX2oo+YxqRmkf8nZQzhDl9odc7VDAYNl5re2pvU45yjeR8vpzGEmIpfvS MO9EXbWmb8fPxfXvX62sF/7lQ+e7lGybjUnXytdojBq9+hxW/zyr376y1mlorAXmKDOf KDv0I89dMXeh9d72QiQgiX+WUcgwlqQh+yXWn4hk+rMBA8EpvirrhGkfFhk5XSVeeezQ KVEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XsD6ue1p; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <libc-alpha-bounces~patch=linaro.org@sourceware.org> Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ada2fe7eead31-49a5f57720csi4740104137.578.2024.09.05.06.49.37 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 06:49:37 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XsD6ue1p; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 36D05386480F for <patch@linaro.org>; Thu, 5 Sep 2024 13:49:37 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 9C96C385843B for <libc-alpha@sourceware.org>; Thu, 5 Sep 2024 13:49:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9C96C385843B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9C96C385843B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::435 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725544168; cv=none; b=swHIik8mfdJP4sezXPhjPkP4VGJnrkcPBHzCnf65PBa1EhP4QMGqgU7cTg3UHkm88/HYDNhw+qXo//obHJjndz7AriAUZw+6uytUmRGqhATlK6TQ7Y7siBs35Pxk9+04KoT5gPEBBKWalmNzi91/DK17XLQfZ6LmJi543rt9y8Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725544168; c=relaxed/simple; bh=V6tXTU4TxCpf65AXolrKwdJJidI6ABNd745ho+CUMhQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=FVeVAUZxF/FSyd/VPLPhq2EqPKMcJotpCjdgnW4Llbyrwa2B96YAG+cYk8awUJ+WzUSJ1nVFYWW2kI6YnkvsheqGwAhIQxLQzzZAI1rVIf+PEAxQ+WhkdJkZNDlFUIW66svAYkzFO/kXg3wOBXkXQwuSdgHVFCdfV47OK7VtThM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-374ca7a10d4so507736f8f.3 for <libc-alpha@sourceware.org>; Thu, 05 Sep 2024 06:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725544165; x=1726148965; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=soaQrEl0728Wvgj/gVHYMQr776iqr04XHGPMvMLJOjo=; b=XsD6ue1pa5LOChBTX4fyer/+EKXsaxDqEjwbRG066D1Gh4tBw5+lHLCJB3bCkAnxJR 2tbrxguwGNwulk+Sptwh4IZuyPOi2ohokaoZY5Dut3Y8YfNwYSdNpW/k/R9cphkGu9mr PMWBdyMq1eJDxGeaH/8hvgosq1D0KJHjQCaw4gMy/976pFYaOPutDVG9eTxNQwWXrAK6 Oh4fvqZUnhyHgRN+/3dUo8UjvJfekpvQuOYlgFpT/SLxky6797Gco/epO9pL2y+p3WAG sHibzcpWOhwJutu+HGzEE/jx3uwl4wOPM2EewzTRfwRL2qf+0YvjiS53HcC2/jSv9rsD /rwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725544165; x=1726148965; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=soaQrEl0728Wvgj/gVHYMQr776iqr04XHGPMvMLJOjo=; b=WQ9UoEL6kpdwa69nj3Y46ZN7pxETHOtTRMbFhU8VbS60rnhHC97vV/WtC7RoFCBN2V uYJOfzMyl6UJ1lUB7XR+GlpwK/Wamkx7/Hy3wguJzG9XBKzBIgzQmfLygCTE8kxU19B+ KYP0fUQ8CcuLEFRQ96s0oIwbmKIVrb4NlrwStlbdheAC/Y/PTvpTq9S8I4+Tcfp42YC7 lBkAeT8rtf9nz0QbI3Y7bAle8rUqBmPAUAVipcQEm/UXCcftSg0niIjQuzVBtqV1PHsV 1sRyRXJNoNuj3OzDqYHznOAxcChg4csSHS01hVm11rnx5E3B2k4OeuuEXTd0fStXzJcf zOGw== X-Gm-Message-State: AOJu0YyRm2K7OyJNExifoDR6MQsp+4Y2iNG/OE5RgNLmka/n1YzWsEE3 aagkWB8khbhJ+ex9pSz93+pNMf8odyJNa+MPDshhaou19RafyV/9Cfyg5up35gGrrxcgvQ2NsQw 2/1c= X-Received: by 2002:a5d:4046:0:b0:374:cb62:b6f1 with SMTP id ffacd0b85a97d-374cb62b83cmr9189838f8f.15.1725544164603; Thu, 05 Sep 2024 06:49:24 -0700 (PDT) Received: from ubuntu-vm.. (51-148-40-55.dsl.zen.co.uk. [51.148.40.55]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-374b34725desm16711528f8f.81.2024.09.05.06.49.23 for <libc-alpha@sourceware.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 06:49:23 -0700 (PDT) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org Subject: [PATCH v2] linux: Use GLRO(dl_vdso_time) on time Date: Thu, 5 Sep 2024 13:49:13 +0000 Message-ID: <20240905134922.2463750-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org |
Series |
[v2] linux: Use GLRO(dl_vdso_time) on time
|
expand
|
* Adhemerval Zanella: > The BZ#24967 fix (1bdda52fe92fd01b424c) missed the time for > architectures that define 1bdda52fe92fd01b424c. Although it is not > an issue, since there is no pointer mangling, there is also no need > to call dl_vdso_vsym since the vDSO setup was already done by the > loader. Typo is still there. Thanks, Florian
diff --git a/sysdeps/unix/sysv/linux/time.c b/sysdeps/unix/sysv/linux/time.c index f8b0cee41c..50854e05e2 100644 --- a/sysdeps/unix/sysv/linux/time.c +++ b/sysdeps/unix/sysv/linux/time.c @@ -32,12 +32,10 @@ time_syscall (time_t *t) return INLINE_SYSCALL_CALL (time, t); } -# undef INIT_ARCH -# define INIT_ARCH() \ - void *vdso_time = dl_vdso_vsym (HAVE_TIME_VSYSCALL); +# define INIT_ARCH() libc_ifunc (time, - vdso_time ? VDSO_IFUNC_RET (vdso_time) - : (void *) time_syscall); + GLRO(dl_vdso_time) != NULL ? VDSO_IFUNC_RET (GLRO(dl_vdso_time)) + : (void *) time_syscall); # else time_t