Author: br
Date: Sun Jan 24 15:12:49 2016
New Revision: 294664
URL: https://svnweb.freebsd.org/changeset/base/294664

Log:
  Add config for RISC-V ISA.
  
  Reviewed by:  emaste
  Sponsored by: DARPA, AFRL
  Sponsored by: HEIF5
  Differential Revision:        https://reviews.freebsd.org/D5046

Modified:
  head/contrib/elftoolchain/libelf/_libelf_config.h

Modified: head/contrib/elftoolchain/libelf/_libelf_config.h
==============================================================================
--- head/contrib/elftoolchain/libelf/_libelf_config.h   Sun Jan 24 13:38:41 
2016        (r294663)
+++ head/contrib/elftoolchain/libelf/_libelf_config.h   Sun Jan 24 15:12:49 
2016        (r294664)
@@ -97,6 +97,12 @@
 #define        LIBELF_BYTEORDER        ELFDATA2MSB
 #define        LIBELF_CLASS            ELFCLASS32
 
+#elif  defined(__riscv64)
+
+#define        LIBELF_ARCH             EM_RISCV
+#define        LIBELF_BYTEORDER        ELFDATA2LSB
+#define        LIBELF_CLASS            ELFCLASS64
+
 #elif  defined(__sparc__)
 
 #define        LIBELF_ARCH             EM_SPARCV9
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to