elftoolchain: backwards compatability for EM_RISCV definition
It is not provided by sys/elf_common.h on older releases Reported by: Jenkins
This commit is contained in:
parent
3b6f4eae15
commit
bdef86c693
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300334
@ -56,6 +56,9 @@ ELFTC_VCSID("$Id: elfdump.c 3474 2016-05-17 20:44:53Z emaste $");
|
|||||||
#ifndef EM_IAMCU
|
#ifndef EM_IAMCU
|
||||||
#define EM_IAMCU 6
|
#define EM_IAMCU 6
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef EM_RISCV
|
||||||
|
#define EM_RISCV 243
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(ELFTC_NEED_ELF_NOTE_DEFINITION)
|
#if defined(ELFTC_NEED_ELF_NOTE_DEFINITION)
|
||||||
#include "native-elf-format.h"
|
#include "native-elf-format.h"
|
||||||
|
@ -35,6 +35,9 @@
|
|||||||
#ifndef EM_IAMCU
|
#ifndef EM_IAMCU
|
||||||
#define EM_IAMCU 6
|
#define EM_IAMCU 6
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef EM_RISCV
|
||||||
|
#define EM_RISCV 243
|
||||||
|
#endif
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
elftc_reloc_type_str(unsigned int mach, unsigned int type)
|
elftc_reloc_type_str(unsigned int mach, unsigned int type)
|
||||||
|
@ -53,6 +53,9 @@ ELFTC_VCSID("$Id: readelf.c 3469 2016-05-15 23:16:09Z emaste $");
|
|||||||
#ifndef EM_IAMCU
|
#ifndef EM_IAMCU
|
||||||
#define EM_IAMCU 6
|
#define EM_IAMCU 6
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef EM_RISCV
|
||||||
|
#define EM_RISCV 243
|
||||||
|
#endif
|
||||||
#ifndef STB_GNU_UNIQUE
|
#ifndef STB_GNU_UNIQUE
|
||||||
#define STB_GNU_UNIQUE 10
|
#define STB_GNU_UNIQUE 10
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user