diff options
author | Nelson Chu <nelson.chu@sifive.com> | 2021-07-08 20:22:20 -0700 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2021-07-13 14:07:57 +0800 |
commit | aa0587b290e9155e71c01447c0e3f57c3ee0ecc3 (patch) | |
tree | 6f2e78ff0bd626f1b2669d5926247a86bd0d7e46 /gas/configure.ac | |
parent | f148d9d334c4b8d26a8e8ce01a3ddf21fac80ee3 (diff) | |
download | gdb-aa0587b290e9155e71c01447c0e3f57c3ee0ecc3.zip gdb-aa0587b290e9155e71c01447c0e3f57c3ee0ecc3.tar.gz gdb-aa0587b290e9155e71c01447c0e3f57c3ee0ecc3.tar.bz2 |
RISC-V: Enable elf attributes when default configure option isn't set.
Since gcc commit, 3c70b3ca1ef58f302bf8c16d9e7c7bb8626408bf, we now enable
elf attributes for all riscv targets by default in gcc. Therefore, I
think binutils should have the same behavior, in case users are writing
assembly files. If --enable-default-riscv-attribute isn't set, then we
enable the elf attributes for all riscv targets by default.
ChangLog:
binutils/
* testsuite/binutils-all/readelf.s: Add comments for riscv.
* testsuite/binutils-all/readelf.s-64: Likewise.
* testsuite/binutils-all/readelf.s-64-unused: Likewise.
* testsuite/binutils-all/readelf.ss: Likewise.
* testsuite/binutils-all/readelf.ss-64: Likewise.
* testsuite/binutils-all/readelf.ss-64-unused: Likewise.
gas/
* configure.ac: If --enable-default-riscv-attribute isn't set,
then we enable the elf attributes for all riscv targets by
default.
* configure: Regenerated.
Diffstat (limited to 'gas/configure.ac')
-rw-r--r-- | gas/configure.ac | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gas/configure.ac b/gas/configure.ac index 78efba8..e237426 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -727,14 +727,7 @@ AC_DEFINE_UNQUOTED(DEFAULT_X86_USED_NOTE, properties by default.]) if test ${ac_default_generate_riscv_attr} = unset; then - case ${target_os} in - elf) - ac_default_generate_riscv_attr=1 - ;; - *) - ac_default_generate_riscv_attr=0 - ;; - esac + ac_default_generate_riscv_attr=1 fi AC_DEFINE_UNQUOTED(DEFAULT_RISCV_ATTR, |