From patchwork Sun Mar 19 15:10:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 66603 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BCCC338A9080 for ; Sun, 19 Mar 2023 15:15:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCCC338A9080 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679238916; bh=1s/3IDPxIftGRKUvIDCZcIn2gksJomjJG+CXeCNKXQI=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=OhcImGmuOpuTj8YF+s/P+03TOFag3tFk5MdSX+iVtNl74hLAzt5brYQgiTaJdaR3F XIJplgtlTr6lfg36MFewi7G7WHr7+YNj846ED1XSSFgHUQFR1Pa6VD9kRB4wNxGKzL 3t+sjb+WBgHTkNBufPT6hOjKjAnD0HWBQ8KqZQH8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org 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 Received: by mail-lf1-x12b.google.com with SMTP id bi9so11992200lfb.12 for ; Sun, 19 Mar 2023 08:11:15 -0700 (PDT) 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) 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 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sergey Bugaev via Libc-alpha From: Sergey Bugaev Reply-To: Sergey Bugaev Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" 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)