diff options
author | emaste <emaste@FreeBSD.org> | 2016-05-20 18:54:42 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-05-20 18:54:42 +0000 |
commit | e171aa4de413b7c6477e2e97b1a2f19e33fcc870 (patch) | |
tree | 086a4d2545dd51c38398a798c85a1d190d11c943 /contrib/elftoolchain/libelftc | |
parent | 8d346526f93ee2d20743eff8e64d6b080d594e23 (diff) | |
download | FreeBSD-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/libelftc')
-rw-r--r-- | contrib/elftoolchain/libelftc/elftc_reloc_type_str.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/elftoolchain/libelftc/elftc_reloc_type_str.c b/contrib/elftoolchain/libelftc/elftc_reloc_type_str.c index a22a1be..eaae982 100644 --- a/contrib/elftoolchain/libelftc/elftc_reloc_type_str.c +++ b/contrib/elftoolchain/libelftc/elftc_reloc_type_str.c @@ -31,6 +31,11 @@ #include <libelftc.h> #include <stdio.h> +/* Backwards compatability for older FreeBSD releases. */ +#ifndef EM_IAMCU +#define EM_IAMCU 6 +#endif + const char * elftc_reloc_type_str(unsigned int mach, unsigned int type) { |