Skip to content

Commit

Permalink
RHEL-7 build fix due to EM_RISCV. (#6614)
Browse files Browse the repository at this point in the history
The elf.h header file on RHEL-7 does not define EM_RISCV which is being
used in the source files. This results in a build failure. This change
fixes the issue.
  • Loading branch information
prasun3 authored Feb 1, 2024
1 parent fc468cc commit 827791f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/unix/module_elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
# define DT_RELR 36
#endif

/* Workaround for EM_RISCV not being defined in elf.h on RHEL-7. */
#ifndef EM_RISCV
# define EM_RISCV 243
#endif

/* XXX i#1345: support mixed-mode 32-bit and 64-bit in one process.
* There is no official support for that on Linux or Mac and for now we do
* not support it either, especially not mixing libraries.
Expand Down

0 comments on commit 827791f

Please sign in to comment.