summaryrefslogtreecommitdiff
path: root/lib/libelf/_libelf_config.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-05-18 06:46:24 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-05-18 06:46:24 +0000
commit9090e45334c51817d4a0fa281c9d76c6e90f8d07 (patch)
treeb031656cb3332146fd6486dd2f885f3a22897f69 /lib/libelf/_libelf_config.h
parentb6287cef9243e06e73ff157fa843467499f51489 (diff)
update libelf from elftoolchain r3717 to r3833
ok deraadt@
Diffstat (limited to 'lib/libelf/_libelf_config.h')
-rw-r--r--lib/libelf/_libelf_config.h8
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