File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1447,7 +1447,7 @@ typedef struct {
1447
1447
#define EF_RISCV_FLOAT_ABI_QUAD 0x0006
1448
1448
#define EF_RISCV_RVE 0x0008
1449
1449
#define EF_RISCV_TSO 0x0010
1450
- #define EF_RISCV_X32 0x0020
1450
+ #define EF_RISCV_N32 0x0020
1451
1451
1452
1452
typedef struct elf32_rel {
1453
1453
Elf32_Addr r_offset ;
Original file line number Diff line number Diff line change @@ -1697,8 +1697,8 @@ static void elf_core_copy_regs(target_elf_gregset_t *regs,
1697
1697
#define ELF_START_MMAP 0x80000000
1698
1698
#define ELF_ARCH EM_RISCV
1699
1699
1700
- #ifndef ABI_X32_P
1701
- #define ABI_X32_P (e_flags ) ((e_flags & EF_RISCV_X32 ) != 0)
1700
+ #ifndef ABI_N32_P
1701
+ #define ABI_N32_P (e_flags ) ((e_flags & EF_RISCV_N32 ) != 0)
1702
1702
#endif
1703
1703
1704
1704
#if defined(TARGET_RISCV32 ) || defined(TARGET_RISCV64ILP32 )
@@ -2063,7 +2063,7 @@ static bool elf_check_ident(struct elfhdr *ehdr)
2063
2063
&& ehdr -> e_ident [EI_MAG2 ] == ELFMAG2
2064
2064
&& ehdr -> e_ident [EI_MAG3 ] == ELFMAG3
2065
2065
#ifdef TARGET_RISCV64ILP32
2066
- && ABI_X32_P (ehdr -> e_flags )
2066
+ && ABI_N32_P (ehdr -> e_flags )
2067
2067
#endif
2068
2068
&& ehdr -> e_ident [EI_CLASS ] == ELF_CLASS
2069
2069
&& ehdr -> e_ident [EI_DATA ] == ELF_DATA
You can’t perform that action at this time.
0 commit comments