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

Message ID 20230501234739.7264-6-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

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 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)