From patchwork Mon May 1 23:47:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 68617 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 D69453858C2B for ; Mon, 1 May 2023 23:49:31 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by sourceware.org (Postfix) with ESMTPS id BF1EC385842E for ; Mon, 1 May 2023 23:48:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BF1EC385842E 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-x534.google.com with SMTP id 41be03b00d2f7-52c3ffc8d13so389638a12.2 for ; Mon, 01 May 2023 16:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1682984912; x=1685576912; 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=O1YLR/1n8nX1V20L+aQoGVpsj5gmP/JuQtoEtCfxLvQ=; b=hr4rhYlzGtGVhfXzfah5tD9cPP53c/9vcI85YpOPkfKTADxAZhR7k4CP9XyjaXFFxL anDDn/yNlclo2A3QJ/ffkGK0Zv2i1f70DaCRyRvUPMYVUAqFZbcUJzQrjIjCX4Z3wULO gus+3nZ7VZp8ZLafNK98c4TAIzJGqt4mOK6TmNzFNWl05BegocaD4INdM3/oFOHWWWun u6DhaUlLCjzZ10ab+zEYpAM+hX4lpTBo7E8PbhOHude/C7S79sd7Gu7DOaJxcLKbpiyU iBn3W1KfZWSEdzmxZVAITkBIHzolEkzmhuPvXyzEwNcmQ+rjMn/x6CDho+ZEk7ZzXQO3 /vgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682984912; x=1685576912; 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=O1YLR/1n8nX1V20L+aQoGVpsj5gmP/JuQtoEtCfxLvQ=; b=CDnGYAGvuW061AcxgnAdBfRay9I6ex3otTZFfinmlw8wVK2NuxyCFrdGTgD9i8qd4x uG+Ho3ubbn3tmkklN3/NmgsEyZjX7GKkzowMPLfXT3t8ONGynYXKhATzonCeKCSTpVoy yogjIjNb0ain7zc2IreU9F9UF7lRmSMcArisVwKdiObkcKiCv1xkw4rQKALUWTz7xirl oSGoLncuwRcDKzRsuReDEmj9TheJQrG7h7fzKIvV0oZfmAMpTCXV1JI0khDGS7E3tGQx T1SsBSQ28a4+gmrs41tKHkvATuVRtN7OIle3/OhhxLiQMM6EqSaN2yueIFBIfdnD9FWA 9SSw== X-Gm-Message-State: AC+VfDzsmnNaBCUWwWWgCnOlXy263rk4aeyZ0QgTcTLYHxyBfgV9Oftp ysrWBYiSJ4tIpqPIJ/VwCj+AKmoykH2die3WrR0= X-Google-Smtp-Source: ACHHUZ4ikQKkim5FdYPIp/V6uJB2bT9cuWE7r0NRKYl6TUyQBQvrivTk3hJ1/e4TStyRb2oufMATaw== X-Received: by 2002:a17:902:f68e:b0:1a6:7510:3341 with SMTP id l14-20020a170902f68e00b001a675103341mr18623042plg.69.1682984912466; Mon, 01 May 2023 16:48:32 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id c24-20020a170902d91800b001ab05828797sm621904plz.179.2023.05.01.16.48.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 16:48:32 -0700 (PDT) Subject: [PATCH v3 5/6] elf.h: Reorder SHT_RISCV_* Date: Mon, 1 May 2023 16:47:38 -0700 Message-Id: <20230501234739.7264-6-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. Signed-off-by: Palmer Dabbelt --- elf/elf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elf/elf.h b/elf/elf.h index f9d169e4e2..f4627a3b4f 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -4002,13 +4002,13 @@ enum #define R_RISCV_NUM 59 +/* RISC-V specific values for the sh_type field. */ +#define SHT_RISCV_ATTRIBUTES (SHT_LOPROC + 3) + /* RISC-V specific values for the st_other field. */ #define STO_RISCV_VARIANT_CC 0x80 /* Function uses variant calling convention */ -/* RISC-V specific values for the sh_type field. */ -#define SHT_RISCV_ATTRIBUTES (SHT_LOPROC + 3) - /* RISC-V specific values for the p_type field. */ #define PT_RISCV_ATTRIBUTES (PT_LOPROC + 3)