From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id CE6463858D33 for ; Wed, 9 Aug 2023 17:55:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CE6463858D33 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1bb9e6c2a90so1276355ad.1 for ; Wed, 09 Aug 2023 10:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1691603721; x=1692208521; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cAvafPLRNJQgHo5UdYCFQnDlTA43xbfoAzXTOiO5jqg=; b=noyZFKQoDiT21bCSN6MXYDC3/9NSyr/tX8MO0uCwxOOgfP1E9T4xl5fip1GPelbho1 eCjrwjrlNaHYpMrRMfpu2SWAyILPjC4g3iu5Gw4h9ymRd8zMO2PUYapGhUHMYRYJayPO ooAv4X/p8aj12HJN+664ag4MY04c53uUY0ECFwfJVxBAiPoM7pNSu+7bX6V7Y0UqI58Q /z6TvIv9E62FELxwZ/Naag/3MZA5D9pD5qmACvqtUO/TfOVpPhMHHZW3YuIiGMDejjHv oQByrzz4DQXV0exJMewMC52zuiTn5wqTsrXo6I6BV09mWgNIWtexnL1skDxIGo8PB5WA ow3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691603721; x=1692208521; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cAvafPLRNJQgHo5UdYCFQnDlTA43xbfoAzXTOiO5jqg=; b=AAgBQZgOv2kMnlU+47XBZKpcdVzQ/JDWSVl9+Nu8LTle4fUOawo5KmOuS4mESrqxJp Yb9YTDRvsE8WqHhYMHfGpcuPZM7Rn6PAJqiucdh08XqI7oNG/tUMdv6e7U5gpYqLneAV n9ZVLeS1bcE8IqXyzrsxS/N9562AZSoDurYmXwzYLQGow5F9FGgnXVAjQuS3FOnokKo4 CJBgoo4r1Ps+sC0Icw2/skdonhXmD5wYRv8F79NHA7ZNnf1MxfszqTFT6nMHSpzYqQZO /A09cBNeV7r5nlskjemgM7EigbnsebRDFUBlw9Jw2s1o+1Iwc3kPSpTs5QK+VQmztKtL ksAA== X-Gm-Message-State: AOJu0YwU3kZRMpreeYjHYWJ5P7CO2Z1cwMXiq9mzMy63m9TCz8++yZQl 1BxGPGZSx25zCapiC+apny/Zkg== X-Google-Smtp-Source: AGHT+IFnvoRNLqhjpIDJ4HFjdQVyz5X9gN8aRfe8MrN687Cdq6lUgyt5IVsTNt3zrLNgWpjxTBg/tg== X-Received: by 2002:a17:902:eccc:b0:1b8:1335:b775 with SMTP id a12-20020a170902eccc00b001b81335b775mr3992392plh.0.1691603720746; Wed, 09 Aug 2023 10:55:20 -0700 (PDT) Received: from gregs-NUC.hsd1.or.comcast.net ([2601:1c0:5480:9a20:d0db:8db1:fb77:6a6a]) by smtp.gmail.com with ESMTPSA id j7-20020a170902690700b001b8052d58a0sm11375534plk.305.2023.08.09.10.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 10:55:20 -0700 (PDT) From: Greg Savin To: gdb-patches@sourceware.org, binutils@sourceware.org, palmer@dabbelt.com, greentime.hu@sifive.com Cc: Greg Savin Subject: [PATCH] Re-map value of NT_RISCV_CSR to not collide with the value of NT_RISCV_VECTOR in Linux kernel header file 'include/uapi/linux/elf.h' Date: Wed, 9 Aug 2023 10:53:38 -0700 Message-Id: <20230809175337.1108580-1-greg.savin@sifive.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.9 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 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: Linux kernel's file 'include/uapi/linux/elf.h' declares the value 0x900 for NT_RISCV_VECTOR, and does not have a definition for NT_RISCV_CSR, nor does it use the value 0x901 for any note type. This patch is intended as a way to resolve the disagreement/collision between Linux and binutils, over the meaning of 0x900 in the context of note types. --- include/elf/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/elf/common.h b/include/elf/common.h index ffa6b60bd2b..0bbe245519e 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -713,7 +713,7 @@ /* note name must be "LINUX". */ #define NT_LARCH_LBT 0xa04 /* LoongArch Binary Translation registers */ /* note name must be "CORE". */ -#define NT_RISCV_CSR 0x900 /* RISC-V Control and Status Registers */ +#define NT_RISCV_CSR 0x901 /* RISC-V Control and Status Registers */ /* note name must be "LINUX". */ #define NT_SIGINFO 0x53494749 /* Fields of siginfo_t. */ #define NT_FILE 0x46494c45 /* Description of mapped files. */ -- 2.25.1