From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id CBEAB3858C83 for ; Sun, 2 Apr 2023 23:16:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CBEAB3858C83 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pj6wU-0003QT-AB; Sun, 02 Apr 2023 19:16:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=In-Reply-To:MIME-Version:References:Subject:To:From: Date; bh=0Uu1QMEKc2boTAz1M8BtFgGzCjyRKxFaIQ0se0nNqY4=; b=kzXA+PPZyWTgpZoHvFZQ t6+vLxwRWHyEF/u63Xtgk9GPvnkMTjaSaNcMYqR/5yZcHHhgdwPOrzHd2gLJfr1wn2KG3zDFZyfpi c3jw7fwcBn7ObeJlArAtPEBGM6XoIg/mEg5OEl43bef35ULPHerOujwrezFVKTcWqoXq3Dit5xZd4 tQeLnPVt/6il2K6HK3tcEQjqEZy6ESW6S5q83Dn/GHs4KCZEIbm8T3JAAinkkqgZzcnNaH003K9VH EEYIr1kuaMHgG4McTtbOwA13ypTkQ9YxRCRiPyUG+tj7tIseQhXgwCppc5aC+yLCsviz2BQhB8umr 1f7j708l+aZndw==; Received: from [2a01:cb19:4a:a400:de41:a9ff:fe47:ec49] (helo=begin) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pj6wS-0000MF-V3; Sun, 02 Apr 2023 19:16:57 -0400 Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1pj6wR-00AtFy-37; Mon, 03 Apr 2023 01:16:55 +0200 Date: Mon, 3 Apr 2023 01:16:55 +0200 From: Samuel Thibault To: Sergey Bugaev Cc: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: Re: [RFC PATCH glibc 20/34] htl: Add tcb-offsets.sym for x86_64 Message-ID: <20230402231655.y7ydk44njoqqqnlb@begin> Mail-Followup-To: Sergey Bugaev , libc-alpha@sourceware.org, bug-hurd@gnu.org References: <20230319151017.531737-1-bugaevc@gmail.com> <20230319151017.531737-21-bugaevc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230319151017.531737-21-bugaevc@gmail.com> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_NUMSUBJECT,KAM_SHORT,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Applied, thanks! Sergey Bugaev, le dim. 19 mars 2023 18:10:03 +0300, a ecrit: > The source code is the same as sysdeps/i386/htl/tcb-offsets.sym, but of > course the produced tcb-offsets.h will be different. > > Signed-off-by: Sergey Bugaev > --- > sysdeps/x86_64/htl/Makefile | 20 ++++++++++++++++++++ > sysdeps/x86_64/htl/tcb-offsets.sym | 8 ++++++++ > 2 files changed, 28 insertions(+) > create mode 100644 sysdeps/x86_64/htl/Makefile > create mode 100644 sysdeps/x86_64/htl/tcb-offsets.sym > > diff --git a/sysdeps/x86_64/htl/Makefile b/sysdeps/x86_64/htl/Makefile > new file mode 100644 > index 00000000..1ced1d12 > --- /dev/null > +++ b/sysdeps/x86_64/htl/Makefile > @@ -0,0 +1,20 @@ > +# Copyright (C) 2020-2023 Free Software Foundation, Inc. > +# This file is part of the GNU C Library. > + > +# The GNU C Library is free software; you can redistribute it and/or > +# modify it under the terms of the GNU Lesser General Public > +# License as published by the Free Software Foundation; either > +# version 2.1 of the License, or (at your option) any later version. > + > +# The GNU C Library is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > +# Lesser General Public License for more details. > + > +# You should have received a copy of the GNU Lesser General Public > +# License along with the GNU C Library; if not, see > +# . > + > +ifeq ($(subdir),csu) > +gen-as-const-headers += tcb-offsets.sym > +endif > diff --git a/sysdeps/x86_64/htl/tcb-offsets.sym b/sysdeps/x86_64/htl/tcb-offsets.sym > new file mode 100644 > index 00000000..7b7c7193 > --- /dev/null > +++ b/sysdeps/x86_64/htl/tcb-offsets.sym > @@ -0,0 +1,8 @@ > +#include > +#include > +#include > + > +MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads) > +SYSINFO_OFFSET offsetof (tcbhead_t, sysinfo) > +POINTER_GUARD offsetof (tcbhead_t, pointer_guard) > +SIGSTATE_OFFSET offsetof (tcbhead_t, _hurd_sigstate) > -- > 2.39.2 > -- Samuel --- Pour une évaluation indépendante, transparente et rigoureuse ! Je soutiens la Commission d'Évaluation de l'Inria.