From patchwork Mon May 1 23:47:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 68615 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 15E013858417 for ; Mon, 1 May 2023 23:48:53 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id B61683858C27 for ; Mon, 1 May 2023 23:48:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B61683858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-517c840f181so1569216a12.3 for ; Mon, 01 May 2023 16:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1682984911; x=1685576911; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:from:to:cc:subject:date :message-id:reply-to; bh=zhFwVyV749PTlqvgj/Y3AoTijF7AAsKCO60KhMnJU1M=; b=5Z8+vjTUkFTd4ZQbTLyqrDQcFB9uhWGOhEkwz3FR99Z3x3t+IRGJCf7FTezOcsBC0/ ub9q7UwVe3/fFIuFwn+bQIZJwhaZl/FUalL6s/oF/SgmScVV3fBCXOOUseh8f5e9N1Wp uXlO+AiYM9xNgnsv5bgRPz0s9XGJJKFVrdbMX+4e66IH+0Cb+Tnb6Xxyj9HdA7r1eijf 0oBjO40TCFBGrfiD/iQg1bMLIFn788ATgzqJIqqe7nZ1xDo8gNVx1IaI4/L+d4O+3J1J eA4MUOEDexM/HxCuHhdNOMEN6ZHkeEXMbhhbB+yQXl5sBM3Ex99RcWopH60O3ksN/eFl lwYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682984911; x=1685576911; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zhFwVyV749PTlqvgj/Y3AoTijF7AAsKCO60KhMnJU1M=; b=Vbw0Oz6pVBgS8hK86lhsDMhA8ipKonks1ViTVTi4UfNpuhtBIptzYIX5jBsO30BDwg N8o52hqzU3z+PkXCCqeZj0taybBSRUiRsxMT+7ugCdZAb8CxThI3Ml1Ehxr1V2DLdjrF V1+MlKDEyUZVAcfb4JwhD2jVJjJkUv8EqglSdO2GQlOofmc3OD2JyH94jS8V3xvU+wA8 Q8GME5TiWsQ1cq+oLVkav5xfy8/Lre82hlLLqJTGr7is1s4K2fpigbFvGhprZDtjOMXG rjOro0jM4tPsbLV/B0RApVH0GGvtm4naaZ8XsFgz1MvfWHyhjw6PInugit/1JZo8dlKy cNLg== X-Gm-Message-State: AC+VfDx5K8bWPoCFker1uryXPm7OAEOsqXNL70L/KTSDeIKEtjEn5a4b AE1KrotfBsUU33LLiyG+KQx5GOMhdSgFrPyFhHk= X-Google-Smtp-Source: ACHHUZ6vCKwP5iC4Q3bOB8QZkiQ3tuawjXaKIFcRVWGBBHwKybMFPEkrBCQ1ZyjD33hAcigCQ2TGDg== X-Received: by 2002:a17:902:f54d:b0:1a1:e01e:7279 with SMTP id h13-20020a170902f54d00b001a1e01e7279mr17979714plf.4.1682984911380; Mon, 01 May 2023 16:48:31 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id q16-20020a170902dad000b00194caf3e975sm18377237plx.208.2023.05.01.16.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 16:48:30 -0700 (PDT) Subject: [PATCH v3 4/6] elf.h: Reorder DT_RISCV_* Date: Mon, 1 May 2023 16:47:37 -0700 Message-Id: <20230501234739.7264-5-palmer@rivosinc.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230501234739.7264-1-palmer@rivosinc.com> References: <20230501234739.7264-1-palmer@rivosinc.com> MIME-Version: 1.0 Cc: libc-alpha@sourceware.org, Palmer Dabbelt From: Palmer Dabbelt To: maskray@google.com, joseph@codesourcery.com X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, 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.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" These match the MIPS ordering. Reported-by: Fangrui Song Signed-off-by: Palmer Dabbelt Reviewed-by: Fangrui Song --- elf/elf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/elf/elf.h b/elf/elf.h index 4c61d3a5ee..f9d169e4e2 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -3933,9 +3933,6 @@ enum #define R_TILEGX_NUM 130 -/* RISC-V specific values for the Dyn d_tag field. */ -#define DT_RISCV_NUM 2 - /* RISC-V ELF Flags */ #define EF_RISCV_RVC 0x0001 #define EF_RISCV_FLOAT_ABI 0x0006 @@ -4017,6 +4014,7 @@ enum /* RISC-V specific values for the d_tag field. */ #define DT_RISCV_VARIANT_CC (DT_LOPROC + 1) +#define DT_RISCV_NUM 2 /* BPF specific declarations. */