binutils-gdb/bfd
Nelson Chu 5a9f5403c7 RISC-V: PR27158, fixed UJ/SB types and added CSS/CL/CS types for .insn.
* Renamed obsolete UJ/SB types and RVC types, also added CSS/CL(CS) types,

[VALID/EXTRACT/ENCODE macros]
BTYPE_IMM:            Renamed from SBTYPE_IMM.
JTYPE_IMM:            Renamed from UJTYPE_IMM.
CITYPE_IMM:           Renamed from RVC_IMM.
CITYPE_LUI_IMM:       Renamed from RVC_LUI_IMM.
CITYPE_ADDI16SP_IMM:  Renamed from RVC_ADDI16SP_IMM.
CITYPE_LWSP_IMM:      Renamed from RVC_LWSP_IMM.
CITYPE_LDSP_IMM:      Renamed from RVC_LDSP_IMM.
CIWTYPE_IMM:          Renamed from RVC_UIMM8.
CIWTYPE_ADDI4SPN_IMM: Renamed from RVC_ADDI4SPN_IMM.
CSSTYPE_IMM:          Added for .insn without special encoding.
CSSTYPE_SWSP_IMM:     Renamed from RVC_SWSP_IMM.
CSSTYPE_SDSP_IMM:     Renamed from RVC_SDSP_IMM.
CLTYPE_IMM:           Added for .insn without special encoding.
CLTYPE_LW_IMM:        Renamed from RVC_LW_IMM.
CLTYPE_LD_IMM:        Renamed from RVC_LD_IMM.
RVC_SIMM3:            Unused and removed.
CBTYPE_IMM:           Renamed from RVC_B_IMM.
CJTYPE_IMM:           Renamed from RVC_J_IMM.

* Added new operands and removed the unused ones,

C5: Unsigned CL(CS) immediate, added for .insn directive.
C6: Unsigned CSS immediate, added for .insn directive.
Ci: Unused and removed.
C<: Unused and removed.

bfd/
    PR 27158
    * elfnn-riscv.c (perform_relocation): Updated encoding macros.
    (_bfd_riscv_relax_call): Likewise.
    (_bfd_riscv_relax_lui): Likewise.
    * elfxx-riscv.c (howto_table): Likewise.
gas/
    PR 27158
    * config/tc-riscv.c (riscv_ip): Updated encoding macros.
    (md_apply_fix): Likewise.
    (md_convert_frag_branch): Likewise.
    (validate_riscv_insn): Likewise.  Also arranged operands, including
    added C5 and C6 operands, and removed unused Ci and C< operands.
    * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
    * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
    * testsuite/gas/riscv/insn.s: Likewise.
gdb/
    PR 27158
    * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
    (decode_j_type_insn): Likewise.
    (decode_cj_type_insn): Likewise.
    (decode_b_type_insn): Likewise.
    (decode): Likewise.
include/
    PR 27158
    * opcode/riscv.h: Updated encoding macros.
opcodes/
    PR 27158
    * riscv-dis.c (print_insn_args): Updated encoding macros.
    * riscv-opc.c (MASK_RVC_IMM): defined to ENCODE_CITYPE_IMM.
    (match_c_addi16sp): Updated encoding macros.
    (match_c_lui): Likewise.
    (match_c_lui_with_hint): Likewise.
    (match_c_addi4spn): Likewise.
    (match_c_slli): Likewise.
    (match_slli_as_c_slli): Likewise.
    (match_c_slli64): Likewise.
    (match_srxi_as_c_srxi): Likewise.
    (riscv_insn_types): Added .insn css/cl/cs.
sim/
    PR 27158
    * riscv/sim-main.c (execute_i): Updated encoding macros.
2021-02-19 11:44:49 +08:00
..
doc bfd: use $(LN_S) in favor of "cp -p" when populating pre-built *.texi 2021-02-15 12:10:41 +01:00
hosts
po RISC-V: Add bfd/cpu-riscv.h to support all spec versions controlling. 2021-02-18 15:09:16 +08:00
.gitignore
acinclude.m4
aclocal.m4 Implement a workaround for GNU mak jobserver 2021-01-12 05:45:44 -08:00
aix5ppc-core.c
aix386-core.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
aout32.c
aout64.c
aout-cris.c
aout-ns32k.c
aout-target.h ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
aoutx.h
arc-got.h
arc-plt.def
arc-plt.h
archive64.c
archive.c
archures.c
bfd-in2.h SHF_LINK_ORDER fixup_link_order in ld 2021-01-13 22:06:02 +10:30
bfd-in.h
bfd.c
bfd.m4
bfdio.c Fix another path length problem opening files on Win32 systems. 2021-01-07 12:05:43 +00:00
bfdwin.c
binary.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
cache.c
cf-i386lynx.c
ChangeLog RISC-V: PR27158, fixed UJ/SB types and added CSS/CL/CS types for .insn. 2021-02-19 11:44:49 +08:00
ChangeLog-0001
ChangeLog-0203
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009 PR27116, Spelling errors found by Debian style checker 2021-01-01 14:36:35 +10:30
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014 PR27116, Spelling errors found by Debian style checker 2021-01-01 14:36:35 +10:30
ChangeLog-2015 PR27116, Spelling errors found by Debian style checker 2021-01-01 14:36:35 +10:30
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
ChangeLog-9193
ChangeLog-9495
ChangeLog-9697
ChangeLog-9899
cisco-core.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coff64-rs6000.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coff-alpha.c alpha_ecoff_get_relocated_section_contents 2021-02-15 13:34:08 +10:30
coff-arm.c
coff-arm.h
coff-bfd.c
coff-bfd.h
coff-go32.c
coff-i386.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coff-ia64.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coff-mcore.c
coff-mips.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coff-rs6000.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coff-sh.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coff-stgo32.c
coff-tic4x.c
coff-tic30.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coff-tic54x.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coff-x86_64.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coff-z8k.c
coff-z80.c
coffcode.h ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
coffgen.c
cofflink.c
coffswap.h
compress.c Tidy inflateEnd calls 2021-01-16 11:11:52 +10:30
config.bfd Remove ia64 from obsolete list 2021-02-11 22:33:48 +10:30
config.in
configure bfd, opcodes, libctf: support --with-included-gettext 2021-02-10 15:26:57 +00:00
configure.ac bfd, opcodes, libctf: support --with-included-gettext 2021-02-10 15:26:57 +00:00
configure.com
configure.host
COPYING
corefile.c
cpu-aarch64.c
cpu-aarch64.h
cpu-alpha.c
cpu-arc.c
cpu-arm.c
cpu-arm.h
cpu-avr.c
cpu-bfin.c
cpu-bpf.c
cpu-cr16.c
cpu-cris.c
cpu-crx.c
cpu-csky.c
cpu-d10v.c
cpu-d30v.c
cpu-dlx.c
cpu-epiphany.c
cpu-fr30.c
cpu-frv.c
cpu-ft32.c
cpu-h8300.c
cpu-h8300.h
cpu-hppa.c
cpu-i386.c
cpu-ia64-opc.c
cpu-ia64.c
cpu-iamcu.c
cpu-ip2k.c
cpu-iq2000.c
cpu-k1om.c
cpu-l1om.c
cpu-lm32.c
cpu-m9s12x.c
cpu-m9s12xg.c
cpu-m32c.c
cpu-m32r.c
cpu-m68hc11.c
cpu-m68hc12.c
cpu-m68k.c
cpu-m68k.h
cpu-m10200.c
cpu-m10300.c
cpu-mcore.c
cpu-mep.c
cpu-metag.c
cpu-microblaze.c
cpu-mips.c
cpu-mmix.c
cpu-moxie.c
cpu-msp430.c
cpu-mt.c
cpu-nds32.c
cpu-nfp.c
cpu-nios2.c
cpu-ns32k.c
cpu-or1k.c
cpu-pdp11.c
cpu-pj.c
cpu-powerpc.c
cpu-pru.c
cpu-riscv.c RISC-V: Add bfd/cpu-riscv.h to support all spec versions controlling. 2021-02-18 15:09:16 +08:00
cpu-riscv.h RISC-V: Add bfd/cpu-riscv.h to support all spec versions controlling. 2021-02-18 15:09:16 +08:00
cpu-rl78.c
cpu-rs6000.c
cpu-rx.c
cpu-s12z.c
cpu-s390.c
cpu-score.c
cpu-sh.c
cpu-sparc.c
cpu-spu.c
cpu-tic4x.c
cpu-tic6x.c
cpu-tic30.c
cpu-tic54x.c
cpu-tilegx.c
cpu-tilepro.c
cpu-v850_rh850.c
cpu-v850.c
cpu-vax.c
cpu-visium.c
cpu-wasm32.c
cpu-xc16x.c
cpu-xgate.c
cpu-xstormy16.c
cpu-xtensa.c
cpu-z8k.c
cpu-z80.c
dep-in.sed
development.sh
dwarf1.c
dwarf2.c DWARF-5: Ignore empty range in DWARF-5 line number tables 2021-01-24 07:00:49 -08:00
ecoff-bfd.h
ecoff.c
ecofflink.c
ecoffswap.h
elf32-am33lin.c
elf32-arc.c
elf32-arm.c Remove arm-symbianelf 2021-02-09 23:36:16 +10:30
elf32-arm.h
elf32-avr.c PR27294, avr OOM 2021-02-11 19:42:15 +10:30
elf32-avr.h
elf32-bfin.c bfin: Skip non SEC_ALLOC section for R_BFIN_FUNCDESC 2021-01-14 05:24:10 -08:00
elf32-bfin.h
elf32-cr16.c
elf32-cr16.h
elf32-cris.c
elf32-crx.c
elf32-csky.c
elf32-csky.h
elf32-d10v.c
elf32-d30v.c
elf32-dlx.c
elf32-dlx.h
elf32-epiphany.c
elf32-fr30.c
elf32-frv.c
elf32-ft32.c pr27228 testcase 2021-01-26 20:54:43 +10:30
elf32-gen.c
elf32-h8300.c
elf32-hppa.c
elf32-hppa.h
elf32-i386.c ld/x86: Add -z report-relative-reloc 2021-01-15 18:07:07 -08:00
elf32-ip2k.c
elf32-iq2000.c
elf32-lm32.c
elf32-m32c.c
elf32-m32r.c
elf32-m68hc1x.c
elf32-m68hc1x.h
elf32-m68hc11.c
elf32-m68hc12.c
elf32-m68k.c
elf32-m68k.h
elf32-mcore.c
elf32-mep.c
elf32-metag.c
elf32-metag.h
elf32-microblaze.c
elf32-mips.c
elf32-moxie.c
elf32-msp430.c
elf32-mt.c
elf32-nds32.c nds32_elf_get_relocated_section_contents 2021-02-15 13:34:08 +10:30
elf32-nds32.h
elf32-nios2.c
elf32-nios2.h
elf32-or1k.c
elf32-pj.c
elf32-ppc.c PowerPC: Don't generate unused section symbols 2021-01-20 16:12:06 +10:30
elf32-ppc.h
elf32-pru.c
elf32-rl78.c Wrong operand for SADDR (rl78) 2021-02-01 16:45:26 +00:00
elf32-rx.c
elf32-rx.h
elf32-s12z.c
elf32-s390.c
elf32-score7.c score-elf binutils-all/strip-13 fail 2021-01-06 21:03:55 +10:30
elf32-score.c score-elf binutils-all/strip-13 fail 2021-01-06 21:03:55 +10:30
elf32-score.h
elf32-sh-relocs.h
elf32-sh.c
elf32-sparc.c
elf32-spu.c
elf32-spu.h
elf32-tic6x.c
elf32-tic6x.h
elf32-tilegx.c
elf32-tilegx.h
elf32-tilepro.c
elf32-tilepro.h
elf32-v850.c
elf32-v850.h
elf32-vax.c
elf32-visium.c
elf32-wasm32.c
elf32-xc16x.c
elf32-xgate.c
elf32-xstormy16.c
elf32-xtensa.c
elf32-z80.c
elf32.c
elf64-alpha.c
elf64-bpf.c
elf64-gen.c
elf64-hppa.c
elf64-hppa.h
elf64-ia64-vms.c
elf64-mips.c
elf64-mmix.c
elf64-nfp.c
elf64-ppc.c PowerPC: Don't generate unused section symbols 2021-01-20 16:12:06 +10:30
elf64-ppc.h
elf64-s390.c
elf64-sparc.c
elf64-tilegx.c
elf64-tilegx.h
elf64-x86-64.c x86-64: Provide more info when failed to convert GOTPCREL 2021-02-04 06:06:44 -08:00
elf64.c
elf-attrs.c
elf-bfd.h Remove arm-symbianelf 2021-02-09 23:36:16 +10:30
elf-eh-frame.c
elf-hppa.h
elf-ifunc.c
elf-linker-x86.h ld/x86: Add -z report-relative-reloc 2021-01-15 18:07:07 -08:00
elf-linux-core.h
elf-m10200.c
elf-m10300.c
elf-nacl.c
elf-nacl.h
elf-properties.c
elf-s390-common.c
elf-s390.h
elf-strtab.c
elf-vxworks.c
elf-vxworks.h
elf.c bfd: add elfcore_write_file_note 2021-01-26 13:22:35 +01:00
elfcode.h ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
elfcore.h
elflink.c PR27311, (symbol from plugin): undefined reference, hidden sym 2021-02-04 14:09:51 +10:30
elfn32-mips.c
elfnn-aarch64.c When displaying ARM private file flag bits, use a 0x prefix. 2021-01-04 15:13:57 +00:00
elfnn-ia64.c Revert "ia64: Check UNDEFWEAK_NO_DYNAMIC_RELOC" 2021-02-11 22:33:48 +10:30
elfnn-riscv.c RISC-V: PR27158, fixed UJ/SB types and added CSS/CL/CS types for .insn. 2021-02-19 11:44:49 +08:00
elfxx-aarch64.c
elfxx-aarch64.h
elfxx-ia64.c
elfxx-ia64.h
elfxx-mips.c Modernise _bfd_elf_mips_get_relocated_section_contents 2021-02-14 22:54:34 +10:30
elfxx-mips.h
elfxx-riscv.c RISC-V: PR27158, fixed UJ/SB types and added CSS/CL/CS types for .insn. 2021-02-19 11:44:49 +08:00
elfxx-riscv.h RISC-V: Add bfd/cpu-riscv.h to support all spec versions controlling. 2021-02-18 15:09:16 +08:00
elfxx-sparc.c
elfxx-sparc.h
elfxx-target.h ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
elfxx-tilegx.c
elfxx-tilegx.h
elfxx-x86.c ld/elf/x86: Don't compare IFUNC address in the shared object 2021-01-16 07:02:36 -08:00
elfxx-x86.h ld/x86: Add -z report-relative-reloc 2021-01-15 18:07:07 -08:00
format.c
gen-aout.c
genlink.h
go32stub.h
hash.c
host-aout.c
hppabsd-core.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
hpux-core.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
i386aout.c
i386bsd.c
i386lynx.c
i386msdos.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
ihex.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
init.c
irix-core.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
libaout.h
libbfd-in.h
libbfd.c ubsan: shift exponent is too large 2021-02-16 19:31:15 +10:30
libbfd.h
libcoff-in.h
libcoff.h
libecoff.h
libhppa.h
libpei.h
libxcoff.h
linker.c
lynx-core.c
mach-o-aarch64.c
mach-o-arm.c
mach-o-i386.c
mach-o-target.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
mach-o-x86-64.c
mach-o.c
mach-o.h
MAINTAINERS
Makefile.am RISC-V: Add bfd/cpu-riscv.h to support all spec versions controlling. 2021-02-18 15:09:16 +08:00
Makefile.in RISC-V: Add bfd/cpu-riscv.h to support all spec versions controlling. 2021-02-18 15:09:16 +08:00
makefile.vms
mep-relocs.pl
merge.c
mmo.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
netbsd-core.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
netbsd.h
ns32k.h
ns32knetbsd.c
opncls.c
osf-core.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
pc532-mach.c
pdp11.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
pe-arm-wince.c
pe-arm.c
pe-i386.c
pe-mcore.c
pe-sh.c
pe-x86_64.c
pef-traceback.h
pef.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
pef.h
pei-arm-wince.c
pei-arm.c
pei-i386.c
pei-ia64.c
pei-mcore.c
pei-sh.c
pei-x86_64.c
peicode.h
peXXigen.c
plugin.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
plugin.h
PORTING
ppcboot.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
ptrace-core.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
README
reloc16.c
reloc.c elf/x86-64: Adjust R_AMD64_DIR64/R_AMD64_DIR32 for PE/x86-64 inputs 2021-01-12 05:19:24 -08:00
rs6000-core.c
sco5-core.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
section.c PR27291, integer overflow in bfd_get_section_contents 2021-02-11 11:58:19 +10:30
simple.c
som.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
som.h
srec.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
stab-syms.c
stabs.c
stamp-h.in
syms.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
sysdep.h
targets.c Remove arm-symbianelf 2021-02-09 23:36:16 +10:30
targmatch.sed
tekhex.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
TODO
trad-core.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
vax1knetbsd.c
vaxnetbsd.c
verilog.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
version.h Automatic date update in version.in 2021-02-19 00:00:13 +00:00
version.m4 Change version number to 2.36.50 and regenerate files 2021-01-09 11:01:01 +00:00
vms-alpha.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
vms-lib.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
vms-misc.c
vms.h
warning.m4
wasm-module.c read_leb128 overflow checking 2021-02-17 16:57:59 +10:30
wasm-module.h
xcofflink.c PR27116, Spelling errors found by Debian style checker 2021-01-01 14:36:35 +10:30
xcofflink.h
xsym.c ELF: Don't generate unused section symbols 2021-01-07 06:46:55 -08:00
xsym.h
xtensa-isa.c
xtensa-modules.c

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

BFD is an object file library.  It permits applications to use the
same routines to process object files regardless of their format.

BFD is used by the GNU debugger, assembler, linker, and the binary
utilities.

The documentation on using BFD is scanty and may be occasionally
incorrect.  Pointers to documentation problems, or an entirely
rewritten manual, would be appreciated.

There is some BFD internals documentation in doc/bfdint.texi which may
help programmers who want to modify BFD.

BFD is normally built as part of another package.  See the build
instructions for that package, probably in a README file in the
appropriate directory.

BFD supports the following configure options:

  --target=TARGET
	The default target for which to build the library.  TARGET is
	a configuration target triplet, such as sparc-sun-solaris.
  --enable-targets=TARGET,TARGET,TARGET...
	Additional targets the library should support.  To include
	support for all known targets, use --enable-targets=all.
  --enable-64-bit-bfd
	Include support for 64 bit targets.  This is automatically
	turned on if you explicitly request a 64 bit target, but not
	for --enable-targets=all.  This requires a compiler with a 64
	bit integer type, such as gcc.
  --enable-shared
	Build BFD as a shared library.
  --with-mmap
	Use mmap when accessing files.  This is faster on some hosts,
	but slower on others.  It may not work on all hosts.

Report bugs with BFD to bug-binutils@gnu.org.

Patches are encouraged.  When sending patches, always send the output
of diff -u or diff -c from the original file to the new file.  Do not
send default diff output.  Do not make the diff from the new file to
the original file.  Remember that any patch must not break other
systems.  Remember that BFD must support cross compilation from any
host to any target, so patches which use ``#ifdef HOST'' are not
acceptable.  Please also read the ``Reporting Bugs'' section of the
gcc manual.

Bug reports without patches will be remembered, but they may never get
fixed until somebody volunteers to fix them.

Copyright (C) 2012-2021 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.