[v3,6/6] elf.h: Reorder PT_RISCV_*

Message ID 20230501234739.7264-7-palmer@rivosinc.com
State Superseded
Headers
Series elf.h: Fix and cleanup the RISC-V defines |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Palmer Dabbelt May 1, 2023, 11:47 p.m. UTC
  These match the MIPS ordering.

Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
---
 elf/elf.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
  

Patch

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