From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id 140F1385B530 for ; Sun, 19 Mar 2023 15:11:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 140F1385B530 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-x12b.google.com with SMTP id bi9so11992200lfb.12 for ; Sun, 19 Mar 2023 08:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679238675; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1s/3IDPxIftGRKUvIDCZcIn2gksJomjJG+CXeCNKXQI=; b=HgEPU71k69OEIgfd01C5NkvpNElrWedp4CaOrUOQj0k3olvl+awU/hEM+3FgIzTKta RTrLkTu8fX3i33MFnNQhk/ogVkjMi67dL2tehfEb02AdOhU7g6jN4MTKmL4tfVg3uGeT EQUxfboaof3YhWOWrM7YhjQwGDeB10vCixRBYu3bpaPmeJ57lEj9Dl7gvtBhjYsYAMcg Y+v92lhHGcFGkMa/PwOlLWtprTbdCwxzFSVU2TntenEU8NoBreK/mc2Hdj+uY8b+e5U/ 3XDrBhiilCPDHcJEScpamq+UugWlwdE5bkUtVmBP4las6lmLaJZegYeHrprX6Oz7wjB5 h2lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679238675; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1s/3IDPxIftGRKUvIDCZcIn2gksJomjJG+CXeCNKXQI=; b=EDangUeAFHAOZ1yCY4HnJppTKFuWS1/N97WmFE/NFG8imW5vj8xwfMLTLbbrHeOwBP jfcia2/ZC0gt+VNhk/irK7lAw/OQriB1UitZdUy68S/A+fxtSG5n8JtUOAPVQ5KWJCQL CDg768cZm2VYtbZqEcpmTDTYa7kjzKg0OueLM8AiTpqUnrLYwC0g56VdPDFiieZ6FIMo a8NhfWnrpdRk22SaavxNdxMoDEPfBCU2ayjGGwp/iKlOfWxr0c3e70eb5PSaYJr2cKXq YyQw8t/dXD2KIBZ6TpbGKuSKMm1If2hXxxEi/W2gwbxag565AAUunKygrKqoxjzH6ZPu ufLA== X-Gm-Message-State: AO0yUKWJ9n6JcbceV2UMNWgGRZlCjX3iQGknfr2/2ILc8o9zLC6D0YJm CD1LB6fGz68D5vLaSOuNpUNu4j7GJxKm8g== X-Google-Smtp-Source: AK7set+rlc66+vPB1TVU8EMvEabH1Q9z0o9cQX1HqEB3i3nIV+Yv2ci/zqWg4t26AdGmBN1NoOCnsA== X-Received: by 2002:ac2:5583:0:b0:4dd:a025:d83 with SMTP id v3-20020ac25583000000b004dda0250d83mr5878766lfg.9.1679238675173; Sun, 19 Mar 2023 08:11:15 -0700 (PDT) Received: from surface-pro-6.. ([2a00:1370:818c:4a57:577a:76f4:df43:5e66]) by smtp.gmail.com with ESMTPSA id m19-20020ac24253000000b004e90dee5469sm1274089lfl.157.2023.03.19.08.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 08:11:14 -0700 (PDT) From: Sergey Bugaev To: libc-alpha@sourceware.org, bug-hurd@gnu.org Cc: Samuel Thibault , Sergey Bugaev Subject: [RFC PATCH glibc 20/34] htl: Add tcb-offsets.sym for x86_64 Date: Sun, 19 Mar 2023 18:10:03 +0300 Message-Id: <20230319151017.531737-21-bugaevc@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230319151017.531737-1-bugaevc@gmail.com> References: <20230319151017.531737-1-bugaevc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,KAM_NUMSUBJECT,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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: 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