From patchwork Mon May 1 23:47:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 68618 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 C97E23851C3D for ; Mon, 1 May 2023 23:49:53 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 71FB9385840D for ; Mon, 1 May 2023 23:48:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 71FB9385840D 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-pl1-x630.google.com with SMTP id d9443c01a7336-1aaec6f189cso14396185ad.3 for ; Mon, 01 May 2023 16:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1682984914; x=1685576914; 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=fvnCupBJjMPlKy0rpb1IUikQ9jMpIHO9Q3cVc2WI84E=; b=KQ/ExYEkD2Yi6xJ+PVrqg++3aVrnpm66x8XFaRNW0Fg0nwfC57OlhKCM4qdJcrHjFa 19QP6L/Ucn8Dh/tAJ/hq1EEg9E1EPdthBid8qU71egMgOcJC0yUgV4gOZMvUGJC4Y87Q /7o9ag90EmP9yJ/fFlO7SYVwol6fE4m3MWGY/tR/a1CPxy7OMhEuhIjKFc9A4ZtgF+Fl x4iv1ADxUzTJ9YT1rh9limPA3rujjyqjqOpbJN/aKwnj0bSpAjOKP7iE4NmCQNF33QKe U4H7bQORb72btKqzVzbnNzeK6FoUTR0Or8IDgZ8++z4wuq8ZjRJzTiRGyvucKfttfIg7 YKbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682984914; x=1685576914; 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=fvnCupBJjMPlKy0rpb1IUikQ9jMpIHO9Q3cVc2WI84E=; b=QjbJUeZl6qlvVV61nGQoxbHzh76b8rIHYYLQxxsoq1fPURFDzwyd4udLlq+DrcV1vq ZOiZSWfVFSQGCyYRQzp5dSgSHAN+iUot/FX8tglE1Z/bRum8vpGhtqAm31Z9PO6Wp8Z0 YfNGk4QBOPeuHGwB0+pJ3rAAoqfS8Fzotizmotp+C+r9I+mUfP+789iXInSZFdH3Z0uD zglUh9c+Z4EhTflH99OeGIx45aQak3KuVXiKRg89O/irhTrVKOuesBnQEBoqDZt9U6CG 4VSS6gyjw+9Lwr0W78jD69UwE+pJ5Ni3CpqDZh7myCRiWxwwQ37PchqirVHFXjEs2Cv/ KgpA== X-Gm-Message-State: AC+VfDyucenxGGHQZt/dKVi+Ol28Rbp7tMqS4pO0ofL2FVcwrwJUcetP /3NOqZ3pmcmegMQKOEDTQCl0rPxsfrrJ0xyhE70= X-Google-Smtp-Source: ACHHUZ4t5mk3Jhm0N0pzm1s4gOpEbGqG9iELM33VHifPAaNzEEuqit2U/pI5HPR2qyrqT9ypd9pDdQ== X-Received: by 2002:a17:902:c38d:b0:19d:1bc1:ce22 with SMTP id g13-20020a170902c38d00b0019d1bc1ce22mr15886880plg.5.1682984913626; Mon, 01 May 2023 16:48:33 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id y2-20020a17090322c200b001aad714400asm4614169plg.229.2023.05.01.16.48.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 16:48:33 -0700 (PDT) Subject: [PATCH v3 6/6] elf.h: Reorder PT_RISCV_* Date: Mon, 1 May 2023 16:47:39 -0700 Message-Id: <20230501234739.7264-7-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.8 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 f4627a3b4f..0b35354dbe 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -4002,6 +4002,9 @@ enum #define R_RISCV_NUM 59 +/* RISC-V specific values for the p_type field. */ +#define PT_RISCV_ATTRIBUTES (PT_LOPROC + 3) + /* RISC-V specific values for the sh_type field. */ #define SHT_RISCV_ATTRIBUTES (SHT_LOPROC + 3) @@ -4009,9 +4012,6 @@ enum #define STO_RISCV_VARIANT_CC 0x80 /* Function uses variant calling convention */ -/* RISC-V specific values for the p_type field. */ -#define PT_RISCV_ATTRIBUTES (PT_LOPROC + 3) - /* RISC-V specific values for the d_tag field. */ #define DT_RISCV_VARIANT_CC (DT_LOPROC + 1) #define DT_RISCV_NUM 2