diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2016-02-12 18:18:49 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2016-02-12 18:18:49 +0000 |
| commit | 7c9f2b63d3a1c147cf1bd709b562d6273908d5b6 (patch) | |
| tree | 4faefe7161f44f1e96042cb888296d788a036e3d /libelf | |
| parent | 888a18208d70e0395f1ba2a425a272996246174e (diff) | |
Diffstat (limited to 'libelf')
| -rw-r--r-- | libelf/_libelf_config.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libelf/_libelf_config.h b/libelf/_libelf_config.h index 1b8f35b2242d..92e0b0ae781d 100644 --- a/libelf/_libelf_config.h +++ b/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 3168 2015-02-24 19:17:47Z emaste $ + * $Id: _libelf_config.h 3396 2016-02-10 21:50:05Z emaste $ */ #if defined(__APPLE__) || defined(__DragonFly__) @@ -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 |
