PR26936 testsuite fixes
[binutils-gdb.git] / ld / ChangeLog
index 0909d6a62ba74dcf483e2817a82258b26888bcf7..fb831d997bb1a3b04b90bac1e2de8776c047a621 100644 (file)
@@ -1,3 +1,234 @@
+2020-11-26  Alan Modra  <amodra@gmail.com>
+
+       PR 26936
+       * testsuite/ld-elf/pr26936.d: Pass --gen-debug to gas rather than -g.
+       Only run when -shared -z options are supported.
+       * testsuite/ld-elf/pr26936b.s: Define more entry symbols.
+
+2020-11-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/26936
+       * testsuite/ld-elf/pr26936.d: New file.
+       * testsuite/ld-elf/pr26936a.s: Likewise.
+       * testsuite/ld-elf/pr26936b.s: Likewise.
+       * testsuite/ld-elf/pr26936c.s: Likewise.
+
+2020-11-25  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.c (lang_output_section_statement_lookup): Change "create"
+       parameter to a tristate, if 2 then always create a new output
+       section statement.  Update all callers, with
+       lang_enter_output_section_statement using "2".
+       (map_input_to_output_sections): Don't ignore SPECIAL constraint
+       here.
+       * ldlang.h (lang_output_section_statement_type): Update prototype.
+       (lang_output_section_find): Update.
+
+2020-11-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gold/26939
+       * testsuite/ld-x86-64/pr26939-x32.d: New file.
+       * testsuite/ld-x86-64/pr26939.d: Likewise.
+       * testsuite/ld-x86-64/pr26939.s: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Run PR gold/26939 tests.
+
+2020-11-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/26918
+       * testsuite/ld-s390/pr26918-1.d: New file.
+       * testsuite/ld-s390/pr26918-1.s: Likewise.
+       * testsuite/ld-s390/s390.exp: Run all *.d tests.
+
+2020-11-23  Shahab Vahedi  <shahab@synopsys.org>
+
+       * testsuite/ld-arc/tls_ie-01.d: Use a more general pattern.
+
+2020-11-21  Nelson Chu  <nelson.chu@sifive.com>
+
+       * emultempl/riscvelf.em (riscv_elf_before_allocation): Change
+       link_info.relax_pass from 3 to 4.
+       * testsuite/ld-riscv-elf/pcgp-relax.d: New testcase.
+       * testsuite/ld-riscv-elf/pcgp-relax.s: Likewise.
+       * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
+
+2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
+
+       * testsuite/ld-ctf/data-func-conflicted.d: Shrink the expected
+       size of the type section now that function types are being
+       deduplicated properly.
+
+2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
+
+       * testsuite/ld-ctf/array.d: Adjust for nonzero flags word and
+       public symbols in the data section rather than variables: use
+       sysv hash style to keep test results the same on non-GNU targets.
+       * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
+       * testsuite/ld-ctf/diag-cuname.d: Likewise.
+       * testsuite/ld-ctf/diag-parlabel.d: Likewise.
+       * testsuite/ld-ctf/slice.d: Likewise.
+       * testsuite/ld-ctf/function.d: Likewise, but in the function section.
+       * testsuite/ld-ctf/conflicting-cycle-1.B-1.d:  Adjust for nonzero
+       flags word.
+       * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
+       * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
+       * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
+       * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
+       * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
+       * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
+       * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
+       * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
+       * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
+       * testsuite/ld-ctf/cycle-1.d: Likewise.
+       * testsuite/ld-ctf/cycle-2.A.d: Likewise.
+       * testsuite/ld-ctf/cycle-2.B.d: Likewise.
+       * testsuite/ld-ctf/cycle-2.C.d: Likewise.
+       * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d:  Likewise.
+       * testsuite/ld-ctf/super-sub-cycles.d:  Likewise.
+       * testsuite/ld-ctf/data-func-1.c: New test.
+       * testsuite/ld-ctf/data-func-2.c: Likewise.
+       * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
+
+2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ldelfgen.c (struct ctf_strsym_iter_cb_arg): Rename to...
+       (struct ctf_strtab_iter_cb_arg): ... this, changing fields:
+       <syms>: Remove.
+       <symcount>: Remove.
+       <symstrtab>: Rename to...
+       <strtab>: ... this.
+       (ldelf_ctf_strtab_iter_cb): Adjust.
+       (ldelf_ctf_symbols_iter_cb): Remove.
+       (ldelf_new_dynsym_for_ctf): New, tell libctf about a single
+       symbol.
+       (ldelf_examine_strtab_for_ctf): Rename to...
+       (ldelf_acquire_strings_for_ctf): ... this, only doing the strtab
+       portion and not symbols.
+       * ldelfgen.h: Adjust declarations accordingly.
+       * ldemul.c (ldemul_examine_strtab_for_ctf): Rename to...
+       (ldemul_acquire_strings_for_ctf): ... this.
+       (ldemul_new_dynsym_for_ctf): New.
+       * ldemul.h: Adjust declarations accordingly.
+       * ldlang.c (ldlang_ctf_apply_strsym): Rename to...
+       (ldlang_ctf_acquire_strings): ... this.
+       (ldlang_ctf_new_dynsym): New.
+       (lang_write_ctf): Call ldemul_new_dynsym_for_ctf with NULL to do
+       the actual symbol shuffle.
+       * ldlang.h (struct elf_strtab_hash): Adjust accordingly.
+       * ldmain.c (bfd_link_callbacks): Wire up new/renamed callbacks.
+
+       * emultempl/aix.em: Adjust for emulation changes:
+       ldemul_examine_strtab_for_ctf renamed to
+       ldemul_acquire_strings_for_ctf, new ldemul_new_dynsym_for_ctf.
+       * emultempl/armcoff.em: Likewise.
+       * emultempl/beos.em: Likewise.
+       * emultempl/elf.em: Likewise.
+       * emultempl/elf-generic.em: Likewise.
+       * emultempl/linux.em: Likewise.
+       * emultempl/msp430.em: Likewise.
+       * emultempl/pe.em: Likewise.
+       * emultempl/pep.em: Likewise.
+       * emultempl/ticoff.em: Likewise.
+       * emultempl/vanilla.em: Likewise.
+
+2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ldlang.c (ctf_output): This is a ctf_dict_t now.
+       (lang_ctf_errs_warnings): Rename ctf_file_t to ctf_dict_t.
+       (ldlang_open_ctf): Adjust comment.
+       (lang_merge_ctf): Use ctf_dict_close, not ctf_file_close.
+       * ldelfgen.h (ldelf_examine_strtab_for_ctf): Rename ctf_file_t to
+       ctf_dict_t.  Change opaque declaration accordingly.
+       * ldelfgen.c (ldelf_examine_strtab_for_ctf): Adjust.
+       * ldemul.h (examine_strtab_for_ctf): Likewise.
+       (ldemul_examine_strtab_for_ctf): Likewise.
+       * ldeuml.c (ldemul_examine_strtab_for_ctf): Likewise.
+
+2020-11-20  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * testsuite/ld-elf/retain3.s: Move symbolic reference into writeable
+       .data section from read-only .text section.
+       * testsuite/ld-elf/retain5.d: Don't pass --print-gc-sections for test
+       that doesn't require it.
+       * testsuite/ld-elf/retain6a.d: Adjust test.
+       * testsuite/ld-elf/retain6main.s: Move symbolic reference into writeable
+       .data section from read-only .text section.
+
+2020-11-18  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/group1.d,
+       * testsuite/ld-powerpc/group1.s,
+       * testsuite/ld-powerpc/group1.sym,
+       * testsuite/ld-powerpc/group2.d,
+       * testsuite/ld-powerpc/group2.s,
+       * testsuite/ld-powerpc/group2.sym,
+       * testsuite/ld-powerpc/group3.s,
+       * testsuite/ld-powerpc/group3.sym: New test files.
+       * testsuite/ld-powerpc/powerpc.exp: Run new tests.
+
+2020-11-18  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * NEWS: Announce support for SHF_GNU_RETAIN.
+       * ld.texi (garbage collection): Document SHF_GNU_RETAIN.
+       (Output Section Discarding): Likewise.
+       * testsuite/ld-elf/elf.exp: Run new tests.
+       * testsuite/ld-elf/retain1.s: New test.
+       * testsuite/ld-elf/retain1a.d: New test.
+       * testsuite/ld-elf/retain1b.d: New test.
+       * testsuite/ld-elf/retain2.d: New test.
+       * testsuite/ld-elf/retain2.ld: New test.
+       * testsuite/ld-elf/retain2.map: New test.
+       * testsuite/ld-elf/retain3.d: New test.
+       * testsuite/ld-elf/retain3.s: New test.
+       * testsuite/ld-elf/retain4.d: New test.
+       * testsuite/ld-elf/retain4.s: New test.
+       * testsuite/ld-elf/retain5.d: New test.
+       * testsuite/ld-elf/retain5.map: New test.
+       * testsuite/ld-elf/retain5lib.s: New test.
+       * testsuite/ld-elf/retain5main.s: New test.
+       * testsuite/ld-elf/retain6a.d: New test.
+       * testsuite/ld-elf/retain6b.d: New test.
+       * testsuite/ld-elf/retain6lib.s: New test.
+       * testsuite/ld-elf/retain6main.s: New test.
+
+2020-11-17  Alan Modra  <amodra@gmail.com>
+
+       PR 26882
+       * testsuite/ld-powerpc/dotsym3.d: Add "-z notext" to ld options.
+       * testsuite/ld-powerpc/dotsym4.d: Likewise.
+       * testsuite/ld-powerpc/ppc476-shared.d: Likewise.
+       * testsuite/ld-powerpc/ppc476-shared2.d: Likewise.
+       * testsuite/ld-powerpc/powerpc.exp: Likewise for various tests.
+       * testsuite/ld-undefined/weak-fundef.s: Add BLPLT variant.
+       * testsuite/ld-undefined/weak-undef.exp: Define BLPLT for ppc32.
+
+2020-11-16  Nick Clifton  <nickc@redhat.com>
+
+       * po/es.po: Updated Spanish translation.
+
+2020-11-16  Shahab Vahedi  <shahab@synopsys.org>
+
+       * testsuite/ld-arc/tls_ie-01.d: Update the dump command.
+
+2020-11-14  Borislav Petkov  <bp@suse.de>
+
+       * testsuite/ld-x86-64/pe-x86-64-4.od: Adjust regexes.
+       * testsuite/ld-x86-64/tlsld3.dd: Likewise.
+       * testsuite/ld-x86-64/tlsld4.dd: Likewise.
+
+2020-11-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/26869
+       * ldelf.c (ldelf_before_allocation): Set rel_from_abs to 1 for
+       __ehdr_start.
+       * testsuite/ld-i386/i386.exp: Run pr26869.
+       * testsuite/ld-i386/pr26869.d: New file.
+       * testsuite/ld-i386/pr26869.s: Likewise.
+
+2020-11-09  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * Makefile.am (development.exp): Fix regexp.
+       * Makefile.in: Regenerate.
+
 2020-11-06  Nick Clifton  <nickc@redhat.com>
 
        * lexsup.c (parse_args): Add more checks of the mapfile.  If it is