PowerPC: Don't generate unused section symbols
[binutils-gdb.git] / gas / ChangeLog
index 03ea1a1c9c31ff29d97eaeae1d5d7095d3523167..d06a018196b34fed9d379e42f3f91b5ec1d0dc86 100644 (file)
@@ -1,3 +1,252 @@
+2021-01-20  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
+       * testsuite/gas/ppc/test1elf32.d: Likewise.
+       * testsuite/gas/ppc/test1elf64.d: Likewise.
+
+2021-01-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gas/27195
+       * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
+       needed.
+       (dwarf2_directive_filename): Likewise.
+       (dwarf2_directive_loc): Likewise.
+       * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
+       * testsuite/gas/lns/lns-diag-1.l: Remove the
+       "Error: file number less than one" errors.
+
+2021-01-18  Alan Modra  <amodra@gmail.com>
+
+       PR 27198
+       * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
+       * testsuite/gas/i386/pr27198.d,
+       * gas/testsuite/gas/i386/pr27198.err,
+       * gas/testsuite/gas/i386/pr27198.s: New test.
+       * gas/testsuite/gas/i386/i386.exp: Run it.
+
+2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
+
+       * config/tc-riscv.c: Indent and GNU coding standards tidy,
+       also aligned the code.
+       * config/tc-riscv.h: Likewise.
+
+2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
+
+       * config/tc-riscv.c: Error and warning messages tidy.
+       * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
+       * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
+       * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
+       * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
+       * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
+       * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
+       * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
+
+2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
+
+       * config/tc-riscv.c: Comments tidy and improvement.  Also update
+       comment "fallthru" to "Fall through" that end with a period and
+       two spaces.
+
+2021-01-14  Mike Frysinger  <vapier@gentoo.org>
+
+       * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
+       Delete warning that these are only available with ELF targets.
+       * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
+       * read.c (potable): ... here.
+
+2021-01-14  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
+       * Makefile.in: Regenerated.
+
+2021-01-14  Mike Frysinger  <vapier@gentoo.org>
+
+       * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
+       (parse_int): Mark char_bag const.
+
+2021-01-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gas/27178
+       * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
+       Don't generate GOT_symbol for PLT relocations.
+       * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
+       * testsuite/gas/i386/no-got.d: New file.
+       * testsuite/gas/i386/no-got.s: Likewise.
+       * testsuite/gas/i386/x86-64-no-got.d: Likewise.
+       * testsuite/gas/i386/x86-64-no-got.s: Likewise.
+
+2021-01-13  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.in: Regenerate.
+       * Makefile.in: Regenerate.
+
+2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/26792
+       * configure.ac: Use GNU_MAKE_JOBSERVER.
+       * aclocal.m4: Regenerated.
+       * configure: Likewise.
+
+2021-01-12  Nick Clifton  <nickc@redhat.com>
+
+       * po/fr.po: Updated French translation.
+
+2021-01-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/27173
+       * configure: Regenerated.
+
+2021-10-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * NEWS: Remove CSRE.
+       * config/tc-aarch64.c (parse_csr_operand): Delete.
+       (parse_operands): Delete handling of
+       AARCH64_OPND_CSRE_CSR.
+       (aarch64_features): Remove csre.
+       * doc/c-aarch64.texi: Remove CSRE.
+       * testsuite/gas/aarch64/csre.d: Delete.
+       * testsuite/gas/aarch64/csre-invalid.s: Likewise.
+       * testsuite/gas/aarch64/csre-invalid.d: Likewise.
+       * testsuite/gas/aarch64/csre_csr.s: Likewise.
+       * testsuite/gas/aarch64/csre_csr.d: Likewise.
+       * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
+       * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
+       * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
+
+2021-01-11  Nick Clifton  <nickc@redhat.com>
+
+       * po/uk.po: Updated Ukranian translation.
+
+2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure: Regenerated.
+
+2021-01-09  Nick Clifton  <nickc@redhat.com>
+
+       * configure: Regenerate.
+       * po/gas.pot: Regenerate.
+
+2021-01-09  Nick Clifton  <nickc@redhat.com>
+
+       * 2.36 release branch crated.
+
+2021-01-08  Peter Bergner  <bergner@linux.ibm.com>
+
+       * testsuite/gas/ppc/rop-checks.d,
+       * testsuite/gas/ppc/rop-checks.l,
+       * testsuite/gas/ppc/rop-checks.s,
+       * testsuite/gas/ppc/rop.d,
+       * testsuite/gas/ppc/rop.s: New tests.
+       * testsuite/gas/ppc/ppc.exp: Run them.
+
+2021-01-09  Alan Modra  <amodra@gmail.com>
+
+       * configure: Regenerate.
+
+2021-01-07  Samuel Thibault  <samuel.thibault@gnu.org>
+
+       * configure: Regenerate.
+
+2021-01-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR 27109
+       * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
+       section symbol.
+       * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
+       * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
+       on the section symbol.
+       (set_symtab): Don't generate unused section symbols.
+       (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
+       on the section symbol.
+       * config/obj-elf.c (elf_adjust_symtab): Call
+       symbol_mark_used_in_reloc on the group signature symbol.
+       * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
+       from expected output.
+       * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
+       is_elf_unused_section_symbols.
+       * testsuite/gas/elf/section2.e: Updated.
+       * testsuite/gas/elf/section2.e-unused: New file.
+       * testsuite/gas/elf/symver.d: Remove unused section symbols.
+       * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
+       * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
+       * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
+       * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
+       * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
+       * testsuite/gas/i386/size-1.d: Likewise.
+       * testsuite/gas/i386/size-3.d: Likewise.
+       * testsuite/gas/i386/svr4.d: Likewise.
+       * testsuite/gas/i386/x86-64-size-1.d: Likewise.
+       * testsuite/gas/i386/x86-64-size-3.d: Likewise.
+       * testsuite/gas/i386/x86-64-size-5.d: Likewise.
+       * testsuite/gas/i386/x86-64-unwind.d: Likewise.
+
+2021-01-07  Philipp Tomsich  <prt@gnu.org>
+
+       * config/tc-riscv.c (riscv_multi_subset_supports): Added
+       INSN_CLASS_ZIHINTPAUSE.
+       * testsuite/gas/riscv/pause.d: New testcase.  Adding coverage for
+       the pause hint instruction.
+       * testsuite/gas/riscv/pause.s: Likewise.
+
+2021-01-07  Claire Xenia Wolf  <claire@symbioticeda.com>
+           Jim Wilson  <jimw@sifive.com>
+           Andrew Waterman  <andrew@sifive.com>
+           Maxim Blinov  <maxim.blinov@embecosm.com>
+           Kito Cheng  <kito.cheng@sifive.com>
+           Nelson Chu  <nelson.chu@sifive.com>
+
+       * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
+       (riscv_get_default_ext_version): Do not check the default_isa_spec when
+       the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
+       * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
+       * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
+       * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
+
+2021-01-06  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
+
+2021-01-06  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/gas/macros/app1.d: xfail tic30.
+       * testsuite/gas/macros/app2.d: Likewise.
+       * testsuite/gas/macros/app3.d: Likewise.
+       * testsuite/gas/macros/app4.d: Likewise.
+
+2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
+
+       * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
+       * doc/c-riscv.texi: Likewise.
+
+2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
+
+       * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
+       to littleriscv.
+       * testsuite/gas/riscv/li64.d: Likewise.
+       * testsuite/gas/riscv/lla32.d: Likewise.
+       * testsuite/gas/riscv/lla64.d: Likewise.
+       * testsuite/gas/riscv/march-ok-g2.d: Likewise.
+       * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
+       * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
+       * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
+       * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
+       * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
+       * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
+
+2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
+
+       * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
+       elf32-bigriscv.
+       (install_insn): Always write instructions as little endian.
+       (riscv_make_nops): Likewise.
+       (md_convert_frag_branch): Likewise.
+       (md_number_to_chars): Write data in target endianness.
+       (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
+       (md_parse_option): Handle the endian options.
+       * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
+       already defined.
+       * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
+
 2021-01-04  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/26256