diff options
author | Ruslan Bukin <br@FreeBSD.org> | 2017-08-07 14:09:57 +0000 |
---|---|---|
committer | Ruslan Bukin <br@FreeBSD.org> | 2017-08-07 14:09:57 +0000 |
commit | ca20f8ec29d76ceb3b2d802d0c1ebf7a715558a9 (patch) | |
tree | 490db99d657a6c647fe622a690481570c3a41c9d /usr.bin/ldd | |
parent | b96793ae434b0c1254b3963516c2db4109bc9d7b (diff) | |
download | src-ca20f8ec29d76ceb3b2d802d0c1ebf7a715558a9.tar.gz src-ca20f8ec29d76ceb3b2d802d0c1ebf7a715558a9.zip |
o Replace __riscv__ with __riscv
o Replace __riscv64 with (__riscv && __riscv_xlen == 64)
This is required to support new GCC 7.1 compiler.
This is compatible with current GCC 6.1 compiler.
RISC-V is extensible ISA and the idea here is to have built-in define
per each extension, so together with __riscv we will have some subset
of these as well (depending on -march string passed to compiler):
__riscv_compressed
__riscv_atomic
__riscv_mul
__riscv_div
__riscv_muldiv
__riscv_fdiv
__riscv_fsqrt
__riscv_float_abi_soft
__riscv_float_abi_single
__riscv_float_abi_double
__riscv_cmodel_medlow
__riscv_cmodel_medany
__riscv_cmodel_pic
__riscv_xlen
Reviewed by: ngie
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D11901
Notes
Notes:
svn path=/head/; revision=322168
Diffstat (limited to 'usr.bin/ldd')
-rw-r--r-- | usr.bin/ldd/ldd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c index e1bebe0746a6..c0b546a99484 100644 --- a/usr.bin/ldd/ldd.c +++ b/usr.bin/ldd/ldd.c @@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$"); #include "extern.h" /* We don't support a.out executables on arm64 and riscv */ -#if !defined(__aarch64__) && !defined(__riscv__) +#if !defined(__aarch64__) && !defined(__riscv) #include <a.out.h> #define AOUT_SUPPORTED #endif |