binutils-gdb/gas/config
Nelson Chu 3fc6c3dc2a RISC-V: Don't generate the ELF privilege attributes when no CSR are used.
gas/
	* config/tc-riscv.c (explicit_csr): New static boolean.
	Used to indicate CSR are explictly used.
	(riscv_ip): Set explicit_csr to TRUE if any CSR is used.
	(riscv_write_out_attrs): If we already have set elf priv
	attributes, then generate them.  Otherwise, don't generate
	them when no CSR are used.

	* testsuite/gas/riscv/attribute-01.d: Remove the priv attributes.
	* testsuite/gas/riscv/attribute-02.d: Likewise.
	* testsuite/gas/riscv/attribute-03.d: Likewise.
	* testsuite/gas/riscv/attribute-04.d: Likewise.
	* testsuite/gas/riscv/attribute-05.d: Likewise.
	* testsuite/gas/riscv/attribute-06.d: Likewise.
	* testsuite/gas/riscv/attribute-07.d: Likewise.
	* testsuite/gas/riscv/attribute-08.d: Likewise.
	* testsuite/gas/riscv/attribute-09.d: Likewise.
	* testsuite/gas/riscv/attribute-10.d: Likewise.
	* testsuite/gas/riscv/attribute-unknown.d: Likewise.
	* testsuite/gas/riscv/attribute-11.s: New testcase.
	* testsuite/gas/riscv/attribute-11.d: New testcase.  The CSR is
	used, so we should output the ELF priv attributes.
	* testsuite/gas/riscv/attribute-12.d: New testcase.  The CSR is
	used, so output the priv attributes according to the -mpriv-spec.
	* testsuite/gas/riscv/attribute-13.d: New testcase.  The CSR isn't
	used, so ignore the -mpriv-spec setting.

	ld/
	* testsuite/ld-riscv-elf/attr-merge-arch-01.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
	* testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
	* testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
2020-06-05 12:14:44 +08:00
..
atof-ieee.c
atof-vax.c
bfin-aux.h
bfin-defs.h
bfin-lex-wrapper.c
bfin-lex.l
bfin-parse.y
e-crisaout.c
e-criself.c
e-i386aout.c
e-i386coff.c
e-i386elf.c
e-mipself.c
itbl-mips.h
m68k-parse.h
m68k-parse.y
obj-aout.c
obj-aout.h
obj-coff-seh.c
obj-coff-seh.h
obj-coff.c
obj-coff.h
obj-ecoff.c
obj-ecoff.h
obj-elf.c Replace "if (x) free (x)" with "free (x)", gas 2020-05-21 10:45:33 +09:30
obj-elf.h gas: Extend .symver directive 2020-04-21 05:33:17 -07:00
obj-evax.c
obj-evax.h
obj-fdpicelf.c
obj-fdpicelf.h
obj-macho.c
obj-macho.h
obj-multi.c
obj-multi.h
obj-som.c
obj-som.h
rl78-defs.h
rl78-parse.y
rx-defs.h
rx-parse.y
tc-aarch64.c Replace "if (x) free (x)" with "free (x)", gas 2020-05-21 10:45:33 +09:30
tc-aarch64.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-alpha.c
tc-alpha.h
tc-arc.c
tc-arc.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-arm.c Replace "if (x) free (x)" with "free (x)", gas 2020-05-21 10:45:33 +09:30
tc-arm.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-avr.c
tc-avr.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-bfin.c
tc-bfin.h bfin: allow ".=.+delta" 2020-04-17 12:45:23 +09:30
tc-bpf.c gas: simplify code in tc-bpf.c:md_apply_fix 2020-06-04 16:34:16 +02:00
tc-bpf.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-cr16.c tc-cr16.c: Use memmove to concatenate 2 overlapping strings 2020-05-25 19:39:13 -07:00
tc-cr16.h
tc-cris.c
tc-cris.h
tc-crx.c gas: Silence GCC 10 warning on tc-crx.c 2020-05-26 06:53:36 -07:00
tc-crx.h
tc-csky.c gas: Update fr_literal access in frag for GCC 10 2020-05-25 04:51:17 -07:00
tc-csky.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-d10v.c
tc-d10v.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-d30v.c
tc-d30v.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-dlx.c
tc-dlx.h
tc-epiphany.c
tc-epiphany.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-fr30.c
tc-fr30.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-frv.c
tc-frv.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-ft32.c
tc-ft32.h
tc-generic.c
tc-generic.h
tc-h8300.c
tc-h8300.h
tc-hppa.c
tc-hppa.h
tc-i386-intel.c
tc-i386.c Don't handle lret/iret when -mlfence-before-ret=[or|not|shl|yes] since they are invalid in SGX enclaves. 2020-05-18 10:23:59 +08:00
tc-i386.h
tc-ia64.c
tc-ia64.h
tc-ip2k.c gas: Fix ip2k-elf and xstormy16-elf build 2020-06-04 11:15:06 -07:00
tc-ip2k.h
tc-iq2000.c
tc-iq2000.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-lm32.c
tc-lm32.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-m32c.c
tc-m32c.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-m32r.c
tc-m32r.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-m68hc11.c
tc-m68hc11.h
tc-m68k.c Replace "if (x) free (x)" with "free (x)", gas 2020-05-21 10:45:33 +09:30
tc-m68k.h
tc-m68851.h
tc-mcore.c gas: Silence GCC 10 warning on tc-mcore.c 2020-05-25 19:39:13 -07:00
tc-mcore.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-mep.c opcodes: discriminate endianness and insn-endianness in CGEN ports 2020-06-04 16:17:42 +02:00
tc-mep.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-metag.c
tc-metag.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-microblaze.c gas: Update fr_literal access in frag for GCC 10 2020-05-25 04:51:17 -07:00
tc-microblaze.h [PATCH 1/4]: microblaze: remove duplicate prototypes 2020-04-08 12:33:16 +01:00
tc-mips.c
tc-mips.h
tc-mmix.c
tc-mmix.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-mn10200.c
tc-mn10200.h
tc-mn10300.c
tc-mn10300.h
tc-moxie.c
tc-moxie.h [PATCH 2/4]: moxie: use generic pcrel support 2020-04-08 11:13:04 +01:00
tc-msp430.c
tc-msp430.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-mt.c
tc-mt.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-nds32.c
tc-nds32.h
tc-nios2.c Replace "if (x) free (x)" with "free (x)", gas 2020-05-21 10:45:33 +09:30
tc-nios2.h
tc-ns32k.c
tc-ns32k.h
tc-or1k.c
tc-or1k.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-pdp11.c Fix all unexpected failures in gas testsuite for pdp11-aout. 2020-05-28 10:11:59 -07:00
tc-pdp11.h
tc-pj.c
tc-pj.h
tc-ppc.c Power10 Reduced precision outer product operations 2020-05-11 21:08:37 +09:30
tc-ppc.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-pru.c
tc-pru.h
tc-riscv.c RISC-V: Don't generate the ELF privilege attributes when no CSR are used. 2020-06-05 12:14:44 +08:00
tc-riscv.h
tc-rl78.c
tc-rl78.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-rx.c [GAS] change of ELF flags initial value in rx-linux 2020-05-05 10:19:41 +01:00
tc-rx.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-s12z.c
tc-s12z.h
tc-s390.c
tc-s390.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-score7.c
tc-score.c tc-score.c: Replace overlapping sprintf with memmove 2020-05-26 06:12:37 -07:00
tc-score.h
tc-sh.c gas: Update fr_literal access in frag for GCC 10 2020-05-25 04:51:17 -07:00
tc-sh.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-sparc.c
tc-sparc.h
tc-spu.c
tc-spu.h
tc-tic4x.c
tc-tic4x.h
tc-tic6x.c
tc-tic6x.h
tc-tic30.c Replace "if (x) free (x)" with "free (x)", gas 2020-05-21 10:45:33 +09:30
tc-tic30.h
tc-tic54x.c
tc-tic54x.h
tc-tilegx.c
tc-tilegx.h
tc-tilepro.c
tc-tilepro.h
tc-v850.c gas: Silence GCC 10 warning on tc-v850.c 2020-05-26 06:56:18 -07:00
tc-v850.h
tc-vax.c gas: Silence GCC 10 warning tc-vax.c 2020-05-26 07:41:07 -07:00
tc-vax.h
tc-visium.c gas: Silence GCC 10 warning on tc-visium.c 2020-05-26 07:54:05 -07:00
tc-visium.h
tc-wasm32.c
tc-wasm32.h
tc-xc16x.c
tc-xc16x.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-xgate.c tc-xgate.c: Replace R_XGATE_PCREL_X with BFD_RELOC_XGATE_PCREL_X 2020-05-26 09:34:18 -07:00
tc-xgate.h
tc-xstormy16.c gas: Fix ip2k-elf and xstormy16-elf build 2020-06-04 11:15:06 -07:00
tc-xstormy16.h [PATCH 4/4]: Add generic prototype for md_pcrel_from_section 2020-04-08 12:28:10 +01:00
tc-xtensa.c xtensa: gas: support optional immediate simcall parameter 2020-04-29 18:31:32 -07:00
tc-xtensa.h
tc-z8k.c
tc-z8k.h
tc-z80.c
tc-z80.h
te-386bsd.h
te-aix5.h
te-aix.h
te-armeabi.h
te-armfbsdeabi.h
te-armfbsdvfp.h
te-armlinuxeabi.h
te-cloudabi.h
te-csky_abiv1_linux.h
te-csky_abiv1.h
te-csky_abiv2_linux.h
te-csky_abiv2.h
te-dragonfly.h
te-freebsd.h
te-generic.h
te-gnu.h
te-go32.h
te-hppa64.h
te-hppa.h
te-hppalinux64.h
te-hpux.h
te-ia64aix.h
te-interix.h
te-irix.h
te-linux.h
te-lynx.h
te-macos.h
te-nacl.h
te-nbsd532.h
te-nbsd.h
te-pc532mach.h
te-pe.h
te-pep.h
te-solaris.h
te-svr4.h
te-symbian.h
te-tmips.h
te-uclinux.h
te-vms.c
te-vms.h
te-vxworks.h
te-wince-pe.h
vax-inst.h
xtensa-istack.h
xtensa-relax.c
xtensa-relax.h