diff options
Diffstat (limited to 'lib/libelf/_libelf_config.h')
-rw-r--r-- | lib/libelf/_libelf_config.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libelf/_libelf_config.h b/lib/libelf/_libelf_config.h index 93876419a73..e89bf3b806d 100644 --- a/lib/libelf/_libelf_config.h +++ b/lib/libelf/_libelf_config.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: _libelf_config.h,v 1.1 2019/02/01 05:27:37 jsg Exp $ + * $Id: _libelf_config.h,v 1.2 2020/05/18 06:46:23 jsg Exp $ */ #if defined(__APPLE__) || defined(__DragonFly__) @@ -103,6 +103,12 @@ #define LIBELF_BYTEORDER ELFDATA2LSB #define LIBELF_CLASS ELFCLASS64 +#elif defined(__riscv64) + +#define LIBELF_ARCH EM_RISCV +#define LIBELF_BYTEORDER ELFDATA2LSB +#define LIBELF_CLASS ELFCLASS64 + #elif defined(__sparc__) #define LIBELF_ARCH EM_SPARCV9 |