Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2016 15:12:50 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r294664 - head/contrib/elftoolchain/libelf
Message-ID:  <201601241512.u0OFCocB001461@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601241512.u0OFCocB001461>