Skip to content

Commit

Permalink
perf: rv32: Fix ELFCLASS32 definition during compiling with elfutils
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
  • Loading branch information
cp0613 authored and guoren83 committed Mar 22, 2024
1 parent a51c9df commit 4ab753c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/perf/util/genelf.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ int jit_add_debug_info(Elf *e, uint64_t code_addr, void *debug, int nr_debug_ent
#elif defined(__riscv) && __riscv_xlen == 64
#define GEN_ELF_ARCH EM_RISCV
#define GEN_ELF_CLASS ELFCLASS64
#elif defined(__riscv) && __riscv_xlen == 32
#define GEN_ELF_ARCH EM_RISCV
#define GEN_ELF_CLASS ELFCLASS32
#elif defined(__loongarch__)
#define GEN_ELF_ARCH EM_LOONGARCH
#define GEN_ELF_CLASS ELFCLASS64
Expand Down

0 comments on commit 4ab753c

Please sign in to comment.