RISC-V: Enable elf attributes when default configure option isn't set.
authorNelson Chu <nelson.chu@sifive.com>
Fri, 9 Jul 2021 03:22:20 +0000 (20:22 -0700)
committerNelson Chu <nelson.chu@sifive.com>
Tue, 13 Jul 2021 06:07:57 +0000 (14:07 +0800)
commitaa0587b290e9155e71c01447c0e3f57c3ee0ecc3
tree6f2e78ff0bd626f1b2669d5926247a86bd0d7e46
parentf148d9d334c4b8d26a8e8ce01a3ddf21fac80ee3
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.
binutils/testsuite/binutils-all/readelf.s
binutils/testsuite/binutils-all/readelf.s-64
binutils/testsuite/binutils-all/readelf.s-64-unused
binutils/testsuite/binutils-all/readelf.ss
binutils/testsuite/binutils-all/readelf.ss-64
binutils/testsuite/binutils-all/readelf.ss-64-unused
gas/configure
gas/configure.ac