summaryrefslogtreecommitdiffstats
path: root/contrib/elftoolchain/libdwarf
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-05-20 18:54:42 +0000
committeremaste <emaste@FreeBSD.org>2016-05-20 18:54:42 +0000
commite171aa4de413b7c6477e2e97b1a2f19e33fcc870 (patch)
tree086a4d2545dd51c38398a798c85a1d190d11c943 /contrib/elftoolchain/libdwarf
parent8d346526f93ee2d20743eff8e64d6b080d594e23 (diff)
downloadFreeBSD-src-e171aa4de413b7c6477e2e97b1a2f19e33fcc870.zip
FreeBSD-src-e171aa4de413b7c6477e2e97b1a2f19e33fcc870.tar.gz
elftoolchain: backwards compatability for EM_IAMCU definition
It is not provided by sys/elf_common.h on older stable/10.
Diffstat (limited to 'contrib/elftoolchain/libdwarf')
-rw-r--r--contrib/elftoolchain/libdwarf/libdwarf_reloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/elftoolchain/libdwarf/libdwarf_reloc.c b/contrib/elftoolchain/libdwarf/libdwarf_reloc.c
index 4ae8f5c..9b28f11 100644
--- a/contrib/elftoolchain/libdwarf/libdwarf_reloc.c
+++ b/contrib/elftoolchain/libdwarf/libdwarf_reloc.c
@@ -28,6 +28,11 @@
ELFTC_VCSID("$Id: libdwarf_reloc.c 3198 2015-05-14 18:36:19Z emaste $");
+/* Backwards compatability for older FreeBSD releases. */
+#ifndef EM_IAMCU
+#define EM_IAMCU 6
+#endif
+
Dwarf_Unsigned
_dwarf_get_reloc_type(Dwarf_P_Debug dbg, int is64)
{
OpenPOWER on IntegriCloud