]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/ChangeLog
x86-64: Move PIC check for PC-relative relocations back
[thirdparty/binutils-gdb.git] / ld / ChangeLog
index e63f2be17891081833b30e8f6b7de1e5ccf01fd7..4837aac2203eef35b3e3d961cd2bf362933a3e2c 100644 (file)
+2019-08-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24905
+       * testsuite/ld-x86-64/pr24905-x32.d: New file.
+       * testsuite/ld-x86-64/pr24905.d: Likewise.
+       * testsuite/ld-x86-64/pr24905.s: Likewise.
+       * testsuite/ld-x86-64/pr24905.t: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.
+
+2019-08-16  Christophe Lyon  <christophe.lyon@linaro.org>
+
+       * emulparams/armelf.sh (OTHER_SECTIONS): Add support for noinit
+       section.
+
+2019-08-16  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/ppc32elf.em (ppc_before_allocation): Force running
+       prelim_size_sections before deciding whether branch trampolines
+       might be needed.
+
+2019-08-15  Jim Wilson  <jimw@sifive.com>
+
+       * testsuite/ld-riscv-elf/c-lui-2.d: New.
+       * testsuite/ld-riscv-elf/c-lui-2.ld: New.
+       * testsuite/ld-riscv-elf/c-lui-2.s: New.
+       * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run the c-lui-2 test.
+
+2019-08-10  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.h (enum statement_enum): Sort.
+       (union lang_statement_union): Sort.
+
+2019-08-10  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.h (lang_common_statement_type): Delete.
+       (lang_object_symbols_statement_type): Delete.
+       (union lang_statement_union): Remove common_statement and
+       object_symbols_statement.
+
+2019-08-10  Alan Modra  <amodra@gmail.com>
+
+       * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
+       (exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
+       stat_alloc return value.
+       * ldlang.c (new_statement, new_afile, sort_def_symbol),
+       (lang_memory_region_lookup, lang_memory_region_alias),
+       (ldlang_add_undef, ldlang_add_require_defined, insert_pad),
+       (lang_add_gc_name, lang_new_phdr): Likewise.
+       * lexsup.c (set_segment_start): Likewise.
+
+2019-08-10  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.h (lang_input_statement_type): Make next
+       and next_real_file a lang_input_statement_type pointer.
+       (lang_statement_append): Delete prototype.
+       (LANG_FOR_EACH_INPUT_STATEMENT): Update for lang_input_statement_type
+       change.
+       * ldmain.c (add_archive_element): Likewise.
+       * ldlang.c: Likewise throughout.
+       (lang_statement_append): Make static.  Make element and field
+       void pointers.  Remove casts in calls.
+       (lang_check): Use a lang_input_statement_type pointer for "file".
+       (find_rescan_insertion): Similarly for "iter" and return value.
+       (lang_process): Similarly for "insert", "iter" and "temp".
+       * emultempl/spuelf.em (embedded_spu_file): Likewise.
+       * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Expand
+       lang_statment_append call.
+
+2019-08-09  Mihailo Stojanovic  <mihailo.stojanovic@rt-rk.com>
+
+       * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
+       * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
+       * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
+       * emultempl/mipself.em: Remove mips_after_parse function.
+       * testsuite/ld-elf/hash.d: Update comment.
+       * testsuite/ld-mips-elf/hash1.d: New test.
+       * testsuite/ld-mips-elf/hash1.s: Ditto.
+       * testsuite/ld-mips-elf/hash1a.d: Remove.
+       * testsuite/ld-mips-elf/hash1b.d: Ditto.
+       * testsuite/ld-mips-elf/hash1c.d: Ditto
+       * testsuite/ld-mips-elf/hash2.d: New test.
+       * testsuite/ld-mips-elf/mips-elf.exp: New tests.
+       * testsuite/ld-mips-elf/start.s: New test.
+
+2019-08-08  Nick Clifton  <nickc@redhat.com>
+
+       PR 24887
+       * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
+       from readelf.
+       * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
+       * testsuite/ld-aarch64/bti-warn.d: Likewise.
+       * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
+       * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
+       * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
+       * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
+       * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
+       * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
+       * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
+       * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
+       * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
+       * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
+       * testsuite/ld-i386/pr23372a.d: Likewise.
+       * testsuite/ld-i386/pr23372c.d: Likewise.
+       * testsuite/ld-i386/pr23486a.d: Likewise.
+       * testsuite/ld-i386/pr23486b.d: Likewise.
+       * testsuite/ld-i386/pr23486c.d: Likewise.
+       * testsuite/ld-i386/pr23486d.d: Likewise.
+       * testsuite/ld-i386/pr24322a.d: Likewise.
+       * testsuite/ld-i386/pr24322b.d: Likewise.
+       * testsuite/ld-i386/property-x86-3.d: Likewise.
+       * testsuite/ld-i386/property-x86-4a.d: Likewise.
+       * testsuite/ld-i386/property-x86-5.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet1.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
+       * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
+       * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
+       * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
+       * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23372a.d: Likewise.
+       * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23372c.d: Likewise.
+       * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23486a.d: Likewise.
+       * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23486b.d: Likewise.
+       * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23486c.d: Likewise.
+       * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr23486d.d: Likewise.
+       * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24322a.d: Likewise.
+       * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24322b.d: Likewise.
+       * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24458a.d: Likewise.
+       * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24458b.d: Likewise.
+       * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24458c.d: Likewise.
+       * testsuite/ld-x86-64/property-1.r: Likewise.
+       * testsuite/ld-x86-64/property-1a.r: Likewise.
+       * testsuite/ld-x86-64/property-2.r: Likewise.
+       * testsuite/ld-x86-64/property-2a.r: Likewise.
+       * testsuite/ld-x86-64/property-3.r: Likewise.
+       * testsuite/ld-x86-64/property-3a.r: Likewise.
+       * testsuite/ld-x86-64/property-4.r: Likewise.
+       * testsuite/ld-x86-64/property-4a.r: Likewise.
+       * testsuite/ld-x86-64/property-5.r: Likewise.
+       * testsuite/ld-x86-64/property-5a.r: Likewise.
+       * testsuite/ld-x86-64/property-6.r: Likewise.
+       * testsuite/ld-x86-64/property-7.r: Likewise.
+       * testsuite/ld-x86-64/property-7a.r: Likewise.
+       * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-3.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-5.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
+
+2019-08-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * scripttempl/elf64bpf.sc: Adapted from elf.sc.
+       * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
+       (EMBEDDED): Define.
+       * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
+       undefined entry symbol.
+       * testsuite/ld-bpf/jump-1.d: Likewise.
+       * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
+       ld in BPF targets, and do not expect line number information.
+       * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
+       in BPF targets.
+
+2019-08-06  Alan Modra  <amodra@gmail.com>
+
+       PR 24873
+       * ldlang.c (find_replacements_insert_point): Return "before" flag.
+       (find_next_input_statement): New function.
+       (lang_process): When placing recompiled LTO objects before a
+       claimed archive, place them immediately before in the statement
+       list.
+
+2019-08-06  Alan Modra  <amodra@gmail.com>
+
+       PR 24873
+       * ldlang.c (plugin_undefs): New static var.
+       (open_input_bfds <lang_group_statement_enum>): Loop on
+       plugin_undefs and hitting plugin_insert point.
+       (lang_process <lto_plugin_active>): Set plugin_undefs.
+
+2019-08-02  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
+
+2019-08-01  Alan Modra  <amodra@gmail.com>
+
+       PR 24806
+       * ldlang.c (process_insert_statements): Add start of list
+       parameter.  Use rather than lang_os_list.head.  Process insert
+       statements inside group statements with a recursive call.
+       (lang_process): Adjust process_insert_statements call.
+       * lexsup.c (parse_args): Warn when adding missing --end-group.
+
+2019-08-01  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
+       * ldlang.c: Likewise throughout file.
+       * emultempl/alphaelf.em: Likewise.
+       * emultempl/elf32.em: Likewise.
+       * emultempl/mmo.em: Likewise.
+       * emultempl/pe.em: Likewise.
+       * emultempl/pep.em: Likewise.
+       * emultempl/ppc32elf.em: Likewise.
+       * emultempl/spuelf.em: Likewise.
+
+2019-07-26  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
+       * testsuite/ld-plugin/lto-5r.d: Likewise.
+
+2019-07-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-plugin/lto-3r.d: Restored.  Check foo instead
+       of __gnu_lto_v.*.
+       * testsuite/ld-plugin/lto-5r.d: Likewise.
+       * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
+
+2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * ld-arc/relax-local-pic.d: New test.
+       * ld-arc/relax-local-pic.s: New file.
+
+2019-07-22  Martin Liska  <mliska@suse.cz>
+
+       * testsuite/ld-plugin/lto-3r.d: Remove.
+       * testsuite/ld-plugin/lto-5r.d: Remove.
+       * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
+       tests.
+
+2019-07-23  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
+       SHF_GNU_MBIND on osabi.  Set output elf_gnu_osabi_mbind.
+
+2019-07-23  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/size-1.d,
+       * testsuite/ld-elf/size-1.s,
+       * testsuite/ld-elf/size-1.t: New test.
+       * testsuite/ld-elf/size-2.d,
+       * testsuite/ld-elf/size-2.s,
+       * testsuite/ld-elf/size-2.t: New test.
+       * testsuite/ld-scripts/size-1.d,
+       * testsuite/ld-scripts/size-1.s,
+       * testsuite/ld-scripts/size-1.t,
+       * testsuite/ld-scripts/size-2.s,
+       * testsuite/ld-scripts/size-2.d,
+       * testsuite/ld-scripts/size-2.t,
+       * testsuite/ld-scripts/size.exp: Delete.
+
+2019-07-22  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+
+       * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
+       allow for output from a arm-none-linux-gnueabihf target.
+
+2019-07-20  Alan Modra  <amodra@gmail.com>
+
+       PR 24827
+       * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
+
+2019-07-19  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/tlsgd.d,
+       * testsuite/ld-powerpc/tlsgd.s,
+       * testsuite/ld-powerpc/tlsie.d,
+       * testsuite/ld-powerpc/tlsie.s,
+       * testsuite/ld-powerpc/tlsld.d,
+       * testsuite/ld-powerpc/tlsld.s: New tests.
+       * testsuite/ld-powerpc/powerpc.exp: Run them.
+
+2019-07-19  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
+       * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
+       * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
+       * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
+       * testsuite/ld-powerpc/powerpc.exp: Update.
+
+2019-07-19  Alan Modra  <amodra@gmail.com>
+
+       PR 24819
+       * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
+
+2019-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24819
+       * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
+       member of output section group when doing a relocatable link.
+       * testsuite/ld-elf/pr24819.d: New file.
+       * testsuite/ld-elf/pr24819.s: Likewise.
+
+2019-07-13  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/tlsso.r: Update.
+       * testsuite/ld-powerpc/tlsso32.g: Update.
+       * testsuite/ld-powerpc/tlsso32.r: Update.
+       * testsuite/ld-powerpc/tlstocso.r: Update.
+       * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
+       * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
+       * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
+       * testsuite/ld-cris/tls-gd-1.d: Update.
+       * testsuite/ld-cris/tls-gd-1h.d: Update.
+       * testsuite/ld-cris/tls-gd-2.d: Update.
+       * testsuite/ld-cris/tls-gd-2h.d: Update.
+       * testsuite/ld-cris/tls-ie-10.d: Update.
+       * testsuite/ld-cris/tls-ie-11.d: Update.
+       * testsuite/ld-cris/tls-ie-8.d: Update.
+       * testsuite/ld-cris/tls-ie-9.d: Update.
+       * testsuite/ld-cris/tls-js1.d: Update.
+       * testsuite/ld-cris/tls-ld-4.d: Update.
+       * testsuite/ld-cris/tls-ld-5.d: Update.
+       * testsuite/ld-cris/tls-ld-6.d: Update.
+       * testsuite/ld-cris/tls-ld-7.d: Update.
+       * testsuite/ld-cris/tls-ldgd-14.d: Update.
+       * testsuite/ld-cris/tls-ldgd-15.d: Update.
+       * testsuite/ld-cris/tls-ldgdx-14.d: Update.
+       * testsuite/ld-cris/tls-ldgdx-15.d: Update.
+       * testsuite/ld-cris/tls-local-54.d: Update.
+       * testsuite/ld-cris/tls-local-60.d: Update.
+       * testsuite/ld-cris/tls-local-61.d: Update.
+       * testsuite/ld-cris/tls-local-63.d: Update.
+       * testsuite/ld-cris/tls-local-64.d: Update.
+       * testsuite/ld-cris/tls-ok-30.d: Update.
+       * testsuite/ld-cris/tls-ok-32.d: Update.
+       * testsuite/ld-cris/tls-ok-34.d: Update.
+       * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
+       * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
+       * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
+       * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
+       * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
+       * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
+       * testsuite/ld-mips-elf/tlslib-o32.got: Update.
+       * testsuite/ld-s390/tlspic.rd: Update.
+       * testsuite/ld-s390/tlspic_64.rd: Update.
+       * testsuite/ld-sparc/tlssunnopic32.rd: Update.
+       * testsuite/ld-sparc/tlssunnopic64.rd: Update.
+       * testsuite/ld-sparc/tlssunpic32.rd: Update.
+       * testsuite/ld-sparc/tlssunpic64.rd: Update.
+
+2019-07-13  Alan Modra  <amodra@gmail.com>
+
+       PR 24786
+       * ldlang.h (enum section_type): Add first_overlay_section.
+       * ldlang.c (lang_add_section): Adjust switch statement.
+       (map_input_to_output_sections): Likewise.
+       (lang_size_sections_1): Always set last_os for first overlay section.
+       (lang_leave_overlay): Set sectype to first_overlay_section.
+
+2019-07-08  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
+       * testsuite/ld-powerpc/callstub-2.d: Likewise.
+
+2019-07-04  Jan Beulich  <jbeulich@suse.com>
+
+       * testsuite/ld-elf/group9.s: Correct argument of .type.
+
+2019-07-02  Nick Clifton  <nickc@redhat.com>
+
+       PR 24753
+       * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
+       LINKER_CREATED section flag when creating the stub section.
+
+2019-07-02  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
+
+       * testsuite/ld-arm/arm-elf.exp: Add tests.
+       * testsuite/ld-arm/cmse_main.s: New test.
+       * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
+       * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
+
+2019-07-01  Nick Clifton  <nickc@redhat.com>
+
+       PR 23839
+       * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
+       exidx relocs.
+
+2019-06-28  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/callstub-1.d,
+       * testsuite/ld-powerpc/callstub-1.s: New test.
+       * testsuite/ld-powerpc/callstub-2.d,
+       * testsuite/ld-powerpc/callstub-2.s: New test.
+       * testsuite/ld-powerpc/powerpc.exp: Run them.
+
+2019-06-25  Jan Beulich  <jbeulich@suse.com>
+
+       * plugin.c (get_lto_kind, get_lto_resolution,
+       get_lto_visibility): Rename "index" to "idx".
+
+2019-06-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24721
+       * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
+       * testsuite/ld-x86-64/pr24721-x32.d: New file.
+       * testsuite/ld-x86-64/pr24721.d: Likewise.
+       * testsuite/ld-x86-64/pr24721.map: Likewise.
+       * testsuite/ld-x86-64/pr24721a.s: Likewise.
+       * testsuite/ld-x86-64/pr24721b.s: Likewise.
+
+2019-06-23  Alan Modra  <amodra@gmail.com>
+
+       PR 24704
+       * testsuite/ld-powerpc/elfv2exe.d: Update.
+       * testsuite/ld-powerpc/elfv2so.d: Update.
+
+2019-06-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
+       * testsuite/ld-aarch64/emit-relocs-22.d: New test.
+       * testsuite/ld-aarch64/emit-relocs-22.s: New test.
+       * testsuite/ld-aarch64/emit-relocs-23.d: New test.
+       * testsuite/ld-aarch64/emit-relocs-23.s: New test.
+
+2019-06-14  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.in: Regenerate.
+       * configure: Regenerate.
+
+2019-06-14  Alan Modra  <amodra@gmail.com>
+
+       PR 24662
+       * testsuite/ld-alpha/tlsbin.rd: Update.
+       * testsuite/ld-alpha/tlsbinr.rd: Update.
+       * testsuite/ld-alpha/tlspic.rd: Update.
+
+2019-06-07  Maciej W. Rozycki  <macro@wdc.com>
+
+       * ld.texi (Options): Also document `-rpath' option restrictions
+       in the description of the option itself.
+
+2019-06-06  Sudakshina Das  <sudi.das@arm.com>
+
+       * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
+       * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
+       * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
+       * testsuite/ld-aarch64/property-bti-pac4.s: New test.
+
+2019-06-06  Sudakshina Das  <sudi.das@arm.com>
+
+       * NEWS: Update options names.
+       * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
+       (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
+       (PARSE_AND_LIST_OPTIONS): Update to -z.
+       (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
+       (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
+       (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
+       * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
+       * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
+       * testsuite/ld-aarch64/bti-warn.d: Likewise.
+       * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
+       * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
+
+2019-05-30  Nick Clifton  <nickc@redhat.com>
+
+       PR 24627
+       * testsuite/ld-elf/ver_def.vd: Update expected output.
+
+2019-05-30  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
+       (EXTRA_EM_FILE): Define to genelf.
+       * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
+
+2019-05-30  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
+       calls in optional "xfail" args.
+       (run_ld_link_exec_tests): Likewise.
+       (is_generic): New.
+       (uses_genelf): Rename from is_generic_elf.  Delete bogus semicolons.
+       * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
+       * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf.  Delete
+       xfail_implib var.
+       * testsuite/ld-elf/sec64k.exp: Use is_generic.
+       * testsuite/ld-elf/shared.exp: Likewise.
+       * testsuite/ld-discard/extern.d: Use is_generic in xfail.
+       * testsuite/ld-discard/start.d: Likewise.
+       * testsuite/ld-discard/static.d: Likewise.
+       * testsuite/ld-elf/attributes.d: Likewise.
+       * testsuite/ld-elf/group1.d: Likewise.
+       * testsuite/ld-elf/group3b.d: Likewise.
+       * testsuite/ld-elf/group8a.d: Likewise.
+       * testsuite/ld-elf/group8b.d: Likewise.
+       * testsuite/ld-elf/group9a.d: Likewise.
+       * testsuite/ld-elf/group9b.d: Likewise.
+       * testsuite/ld-elf/linkonce2.d: Likewise.
+       * testsuite/ld-elf/merge2.d: Likewise.
+       * testsuite/ld-elf/merge3.d: Likewise.
+       * testsuite/ld-elf/pr12851.d: Likewise.
+       * testsuite/ld-elf/pr12975.d: Likewise.
+       * testsuite/ld-elf/pr13177.d: Likewise.
+       * testsuite/ld-elf/pr13195.d: Likewise.
+       * testsuite/ld-elf/pr17550c.d: Likewise.
+       * testsuite/ld-elf/pr17550d.d: Likewise.
+       * testsuite/ld-elf/pr17615.d: Likewise.
+       * testsuite/ld-elf/pr21562a.d: Likewise.
+       * testsuite/ld-elf/pr21562b.d: Likewise.
+       * testsuite/ld-elf/pr21562c.d: Likewise.
+       * testsuite/ld-elf/pr21562d.d: Likewise.
+       * testsuite/ld-elf/pr21562i.d: Likewise.
+       * testsuite/ld-elf/pr21562j.d: Likewise.
+       * testsuite/ld-elf/pr21562k.d: Likewise.
+       * testsuite/ld-elf/pr21562l.d: Likewise.
+       * testsuite/ld-elf/pr21562m.d: Likewise.
+       * testsuite/ld-elf/pr21562n.d: Likewise.
+       * testsuite/ld-elf/pr22677.d: Likewise.
+       * testsuite/ld-elf/pr22836-1a.d: Likewise.
+       * testsuite/ld-elf/pr22836-1b.d: Likewise.
+       * testsuite/ld-elf/warn3.d: Likewise.
+       * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
+       targets rather than notarget.
+       * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
+       * testsuite/ld-elf/orphan-10.d: Likewise.
+       * testsuite/ld-elf/orphan-9.d: Likewise.
+       * testsuite/ld-elf/orphan-region.d: Likewise.
+       * testsuite/ld-elf/orphan.d: Likewise.
+       * testsuite/ld-elf/orphan3.d: Likewise.
+       * testsuite/ld-elf/pr20528a.d: Likewise.
+       * testsuite/ld-elf/pr20528b.d: Likewise.
+       * testsuite/ld-elf/pr23658-1a.d: Likewise.
+       * testsuite/ld-elf/pr23658-1b.d: Likewise.
+       * testsuite/ld-elf/pr349.d: Likewise.
+       * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
+       targets rather than notarget.
+       * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
+
+2019-05-28  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
+       for pcrel_hi/pcrel_lo.
+       * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
+       * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
+       * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
+       * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
+
+2019-05-28  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
+       the output is coff before accessing coff tdata.
+       * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
+
+2019-05-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
+       * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
+
+2019-05-27  Alan Modra  <amodra@gmail.com>
+
+       PR 24596
+       * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
+       BFS_KEEP on group signature symbol.
+
+2019-04-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
+       * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
+       * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
+       * testsuite/ld-aarch64/variant_pcs-now.d: New test.
+       * testsuite/ld-aarch64/variant_pcs-r.d: New test.
+       * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
+       * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
+
+2019-05-24  Alan Modra  <amodra@gmail.com>
+
+       * po/BLD-POTFILES.in: Regenerate.
+
+2019-05-24  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/notoc2.d,
+       * testsuite/ld-powerpc/notoc2.s: New test.
+       * testsuite/ld-powerpc/powerpc.exp: Run it.
+
+2019-05-24  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/pcrelopt.s,
+       * testsuite/ld-powerpc/pcrelopt.d,
+       * testsuite/ld-powerpc/pcrelopt.sec: New test.
+       * testsuite/ld-powerpc/powerpc.exp: Run it.
+
+2019-05-23  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
+       * Makefile.in (prefix): Regenerate.
+       * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
+       * emulparams/elf64bpf.sh: New file.
+       * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
+       bpf-*-* to the list of targets not supporting gc-sections.
+       * testsuite/ld-bpf/bar.s: New file.
+       * testsuite/ld-bpf/jump-1.d: Likewise.
+       * testsuite/ld-bpf/foo.s: Likewise.
+       * testsuite/ld-bpf/call-1.d: Likewise.
+       * testsuite/ld-bpf/bpf.exp: Likewise.
+       * testsuite/ld-bpf/baz.s: Likewise.
+
+2019-05-23  Alan Modra  <amodra@gmail.com>
+
+       PR 24576
+       * ldfile.c (enum script_open_style): New.
+       (struct script_name_list): New.
+       (ldfile_open_command_file_1): Take a script_open_style param
+       rather than booleans.  Adjust callers.  Only fail when -T or
+       default -T script is invoked twice.
+       (ldfile_try_open_bfd): Revert last change.
+
+2019-05-22  Julius Werner  <jwerner@chromium.org>
+           Nick Clifton  <nickc@redhat.com>
+
+       PR 24576
+       * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
+       is_script.  If true check that the file has not already been
+       parsed as a linker script.
+       (ldfile_open_script_file): New function.
+       (ldfile_try_open_bfd): Use the new function in place of
+       ldfile_open_command_line.
+       * ldmain.c (main): Likewise.
+       * lexsup.c (parse_args): Use the new function for opening linker
+       scripts with the -T option.
+       * ldfile.h (ldfile_open_script_file): Add prototype.
+
+2019-05-21  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
+       %tprel_hi and %tprel_lo relocations.
+       * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
+       * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
+       * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
+       * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
+       script file.
+
+2019-05-21  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
+       * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
+       * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
+       * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
+       * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
+       * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2019-05-21  Matthew Fortune  <matthew.fortune@mips.com>
+           Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * emultempl/mipself.em (compact_branches): New static variable.
+       (mips_create_output_section_statements): Call
+       _bfd_mips_elf_compact_branches.
+       (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
+       OPTION_NO_COMPACT_BRANCHES.
+       (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
+       no-compact-branches.
+       (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
+       --no-compact-branches.
+       (PARSE_AND_LIST_ARGS_CASES): Handle the above.
+       * ld.texinfo: Document --compact-branches, --no-compact-branches.
+       * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
+       * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
+       * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
+       * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
+       * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
+       * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2019-05-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
+
+       * testsuite/ld-arm/arm-elf.exp: Add tests
+       * testsuite/ld-arm/bfs-0.s: New test.
+       * testsuite/ld-arm/bfs-1.s: New test.
+       * testsuite/ld-arm/branch-futures.d: New test.
+
+2019-05-21  Tamar Christina  <tamar.christina@arm.com>
+
+       PR ld/24373
+       * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
+       to flags.
+       * NEWS: Add changes to flag.
+       (PARSE_AND_LIST_OPTIONS): Update help descriptions.
+       (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
+       * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
+       * testsuite/ld-aarch64/erratum843419-adr.d: New test.
+       * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
+       * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
+       * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
+       * testsuite/ld-aarch64/erratum843419-far.s: New test.
+       * testsuite/ld-aarch64/erratum843419-full.d: New test.
+       * testsuite/ld-aarch64/erratum843419-near.s: New test.
+       * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
+
+2019-05-21  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
+
+       PR ld/24571
+       * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
+       * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
+
+2019-05-21  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
+
+       PR ld/24564
+       * testsuite/ld-avr/wraparound-range-boundary.d: New test.
+       * testsuite/ld-avr/wraparound-range-boundary.s: New test.
+
+2019-05-20  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       PR 14798
+       * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
+       global code symbols.
+       * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
+
+2019-05-17  Alan Modra  <amodra@gmail.com>
+
+       PR 24567
+       * plugin.c (plugin_notice): Do not let a common symbol override
+       a non-common definition in IR.
+
+2019-05-09  Dimitar Dimitrov  <dimitar@dinux.eu>
+
+       * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
+       Rename.
+
+2019-05-08  Pekka Seppänen  <pexu@sourceware.mail.kapsi.fi>
+
+       PR 24536
+       * ldbuildid.c (generate_build_id): Cast return value from
+       GetProcAddress in order to avoid a compile time warning.
+
+2019-05-06  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
+
+2019-05-04  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-scripts/fill.d: Don't xfail m32c
+       * testsuite/ld-scripts/fill16.d: Likewise.
+
+2019-05-04  Alan Modra  <amodra@gmail.com>
+
+       PR 24511
+       * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
+       data section on hppa64.
+       * testsuite/ld-elf/pr14156b.d: Likewise.
+       * testsuite/ld-scripts/pr18963.t: Map standard sections to set
+       output section flags.
+       * testsuite/ld-scripts/sane1.t: Likewise.
+       * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
+       and __fini_array_start.  Define __start et al.
+       * testsuite/ld-elf/pr24511.d: New test.
+
+2019-04-30  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/elfv2exe.d: Update.
+       * testsuite/ld-powerpc/elfv2so.d: Update.
+       * testsuite/ld-powerpc/tocopt.d: Update.
+       * testsuite/ld-powerpc/tocopt.s: Update.
+       * testsuite/ld-powerpc/tocopt5.d: Update.
+       * testsuite/ld-powerpc/tocopt5.s: Update.
+       * testsuite/ld-powerpc/tocopt7.d: Update.
+       * testsuite/ld-powerpc/tocopt7.s: Update.
+       * testsuite/ld-powerpc/tocopt8.d: Update.
+       * testsuite/ld-powerpc/tocopt8.s: Update.
+
+2019-04-30  Alan Modra  <amodra@gmail.com>
+
+       * ld.texi (How GNU properties are merged): Avoid pod2man error.
+       Correct example.
+
+2019-04-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24486
+       * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
+       * testsuite/ld-plugin/pr24486a.c: New file.
+       * testsuite/ld-plugin/pr24486b.c: Likewise.
+       * testsuite/ld-plugin/pr24486c.c: Likewise.
+
+2019-04-26  Nick Clifton  <nickc@redhat.com>
+
+       * po/ru.po: Updated Russian translation.
+
+2019-04-26  Christopher Yeleighton  <giecrilj@stegny.2a.pl>
+
+       * ld.texi: Properly hyphenate the word "specific".
+
+2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24406
+       * ld.texi: Remove LTO warning from --wrap.
+       * plugin.c (get_symbols): Update resolution for wrapper and
+       wrapped symbols.
+       * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
+       * testsuite/ld-plugin/pr24406-1.c: New file.
+       * testsuite/ld-plugin/pr24406-2a.c: Likewise.
+       * testsuite/ld-plugin/pr24406-2b.c: Likewise.
+
+2019-04-25  Sudakshina Das  <sudi.das@arm.com>
+
+       * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
+       * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
+       * testsuite/ld-aarch64/bti-plt-1.d: Update.
+       * testsuite/ld-aarch64/bti-plt-3.d: Update.
+       * testsuite/ld-aarch64/bti-plt-5.d: Update.
+       * testsuite/ld-aarch64/pac-plt-1.d: Update.
+       * testsuite/ld-aarch64/pac-plt-2.d: Update.
+
+2019-04-24  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * testsuite/config/default.exp: Use [check_compiler_available]
+       instead of [which $CC].
+       * testsuite/ld-auto-import/auto-import.exp: Likewise.
+       * testsuite/ld-cygwin/exe-export.exp: Likewise.
+       * testsuite/ld-elf/audit.exp: Likewise.
+       * testsuite/ld-elf/compress.exp: Likewise.
+       * testsuite/ld-elf/dwarf.exp: Likewise.
+       * testsuite/ld-elf/elf.exp: Likewise.
+       * testsuite/ld-elf/indirect.exp: Likewise.
+       * testsuite/ld-elf/linux-x86.exp: Likewise.
+       * testsuite/ld-elf/shared.exp: Likewise.
+       * testsuite/ld-elf/tls.exp: Likewise.
+       * testsuite/ld-elf/wrap.exp: Likewise.
+       * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
+       * testsuite/ld-elfvers/vers.exp: Likewise.
+       * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
+       * testsuite/ld-elfweak/elfweak.exp: Likewise.
+       * testsuite/ld-gc/gc.exp: Likewise.
+       * testsuite/ld-i386/i386.exp: Likewise.
+       * testsuite/ld-i386/no-plt.exp: Likewise.
+       * testsuite/ld-i386/tls.exp: Likewise.
+       * testsuite/ld-ifunc/ifunc.exp: Likewise.
+       * testsuite/ld-mn10300/mn10300.exp: Likewise.
+       * testsuite/ld-pe/pe-compile.exp: Likewise.
+       * testsuite/ld-pe/pe-run.exp: Likewise.
+       * testsuite/ld-pe/pe-run2.exp: Likewise.
+       * testsuite/ld-pie/pie.exp: Likewise.
+       * testsuite/ld-plugin/lto.exp: Likewise.
+       * testsuite/ld-plugin/plugin.exp: Likewise.
+       * testsuite/ld-scripts/crossref.exp: Likewise.
+       * testsuite/ld-sh/sh.exp: Likewise.
+       * testsuite/ld-shared/shared.exp: Likewise.
+       * testsuite/ld-size/size.exp: Likewise.
+       * testsuite/ld-srec/srec.exp: Likewise.
+       * testsuite/ld-undefined/undefined.exp: Likewise.
+       * testsuite/ld-unique/unique.exp: Likewise.
+       * testsuite/ld-x86-64/mpx.exp: Likewise.
+       * testsuite/ld-x86-64/no-plt.exp: Likewise.
+       * testsuite/ld-x86-64/tls.exp: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Likewise.
+       * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
+       check_compiler_available before trying to use the compiler.
+       (run_cc_link_tests): Likewise.
+       (check_compiler_available): New.  Use it instead of [which $CC].
+
+2019-04-23  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.am (GENDEPDIR): New var, used..
+       (GENSCRIPTS): ..here.
+       * Makefile.in: Regenerate.
+       * genscripts.sh: Test for $DEPDIR set before every use.
+
+2019-04-22  Matthew Fortune  <matthew.fortune@mips.com>
+
+       * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
+       for M5100.
+
+2019-04-19  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
+       * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
+       s12z to list of targets not supporting --gc-sections.
+
+2019-04-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
+       of pr18801.
+       * testsuite/ld-x86-64/x86-64.exp: Likewise.
+       * testsuite/ld-i386/pr18801.d: Removed.
+       * testsuite/ld-x86-64/pr18801.d: Likewise.
+       * testsuite/ld-i386/pr18801a.d: New file.
+       * testsuite/ld-i386/pr18801b.d: Likewise.
+       * testsuite/ld-x86-64/pr18801a.d: Likewise.
+       * testsuite/ld-x86-64/pr18801b.d: Likewise.
+       * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
+       * testsuite/ld-x86-64/pie2.d: Likewise.
+       * testsuite/ld-x86-64/pr19719.d: Likewise.
+       * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
+       * testsuite/ld-x86-64/pr19969.d: Likewise.
+       * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
+       * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
+       * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
+       * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
+       * testsuite/ld-x86-64/pr22791-1.err: Likewise.
+
+2019-04-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/24458
+       * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
+       * testsuite/ld-x86-64/pr24458.s: New file.
+       * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24458a.d: Likewise.
+       * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24458b.d: Likewise.
+       * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
+       * testsuite/ld-x86-64/pr24458c.d: Likewise.
+
+2019-04-17  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
+       symbol when .lower.bss or .either.bss sections exist.
+       Define __crt0_movedata when .lower.data or .either.data sections exist.
+       * testsuite/gas/msp430/either-data-bss-sym.d: New test.
+       * testsuite/gas/msp430/low-data-bss-sym.d: New test.
+       * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
+       * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
+       * testsuite/gas/msp430/msp430.exp: Run new tests.
+       Enable large code model when running -mdata-region={upper,either}
+       tests.
+
+2019-04-16  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
+       * testsuite/ld-scripts/section-match-1.d: Likewise.
+       * testsuite/ld-undefined/require-defined.exp: Likewise.
+
+2019-04-15  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
+       targets.
+
+2019-04-15  Sudakshina Das  <sudi.das@arm.com>
+
+       * testsuite/ld-arm/bfcsel.s: New.
+       * testsuite/ld-arm/bfcsel.d: New.
+       * testsuite/ld-arm/arm-elf.exp: Add above test.
+
+2019-04-15  Sudakshina Das  <sudi.das@arm.com>
+
+       * testsuite/ld-arm/bfl.s: New.
+       * testsuite/ld-arm/bfl.d: New.
+       * testsuite/ld-arm/arm-elf.exp: Add above test.
+
+2019-04-15  Sudakshina Das  <sudi.das@arm.com>
+
+       * testsuite/ld-arm/bf.s: New.
+       * testsuite/ld-arm/bf.d: New.
+       * testsuite/ld-arm/arm-elf.exp: Add above test.
+
+2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * testsuite/ld-arm/attr-merge-13.attr: New test.
+       * testsuite/ld-arm/attr-merge-13a.s: New test.
+       * testsuite/ld-arm/attr-merge-13b.s: New test.
+
+2019-04-13  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter.  Add
+       DEPDIR parameter.
+       (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
+       (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
+       $GEN_DEPENDS.
+       (e*.c): Delete all dependencies, instead include dependencies
+       from $DEPDIR/*.Pc.
+       * Makefile.in: Regenerate.
+       * configure.ac (source_sh): Define and use function.
+       * configure: Regenerate.
+       * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
+       * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
+       * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
+       * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
+       * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
+       * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
+       * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
+       * emulparams/armelf_linux_eabi.sh,
+       * emulparams/armelf_linux_fdpiceabi.sh,
+       * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
+       * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
+       * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
+       * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
+       * emulparams/armelfb_linux_fdpiceabi.sh,
+       * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
+       * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
+       * emulparams/elf32_sparc_sol2.sh,
+       * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
+       * emulparams/elf32_tic6x_elf_be.sh,
+       * emulparams/elf32_tic6x_elf_le.sh,
+       * emulparams/elf32_tic6x_linux_be.sh,
+       * emulparams/elf32_tic6x_linux_le.sh,
+       * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
+       * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
+       * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
+       * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
+       * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
+       * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
+       * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
+       * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
+       * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
+       * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
+       * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
+       * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
+       * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
+       * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
+       * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
+       * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
+       * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
+       * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
+       * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
+       * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
+       * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
+       * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
+       * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
+       * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
+       * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
+       * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
+       * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
+       * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
+       * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
+       * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
+       * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
+       * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
+       * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
+       * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
+       * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
+       * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
+       * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
+       * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
+       * emulparams/elf_x86_64_cloudabi.sh,
+       * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
+       * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
+       * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
+       * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
+       * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
+       * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
+       * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
+       * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
+       * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
+       * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
+       * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
+       * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
+       * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
+       * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
+       * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
+       * emulparams/shl.sh, * emulparams/shlelf.sh,
+       * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
+       * emulparams/shlelf_vxworks.sh: Use source_sh.
+       * genscripts.sh: Adjust for changed parameters.  Emit dependencies
+       for e*.c to .deps/*.Pc.
+       (source_sh): New function, use it throughout to source scripts.
+       * genscrba.sh (source_em): Use source_sh.
+
+2019-04-13  Alan Modra  <amodra@gmail.com>
+
+       * configure.ac (TDIRS): Build up tdirs in this variable and
+       AC_SUBST, also using AM_SUBST_NOTMAKE.
+       * configure: Regenerate.
+       * Makefile.am (DISTCLEANFILES): Remove tdirs.
+       * Makefile.in: Regenerate.
+
+2019-04-12  Nick Clifton  <nickc@redhat.com>
+
+       PR 24450
+       * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
+       example of section attributes.
+
+2019-04-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * NEWS: Mention new option --no-print-map-discarded.
+       * ld.h (ld_config_type) <print_map_discarded>: New field.
+       * ldlang.c (lang_map): Conditionally output discarded sections
+       in map files based on configuration option.
+       * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
+       OPTION_NO_PRINT_MAP_DISCARDED>: New.
+       * ldmain.c (main): Enabled print_map_discarded by default.
+       * lexsup.c (ld_options): Add new command-line options.
+       (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
+       OPTION_PRINT_MAP_DISCARDED>: New cases.
+       * ld.texi: Document new options.
+       * testsuite/ld-gc/gc.exp: Add new test.
+       * testsuite/ld-gc/skip-map-discarded.s: New file.
+       * testsuite/ld-gc/skip-map-discarded.d: New file.
+       * testsuite/ld-gc/skip-map-discarded.map: New file.
+
+2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld.texi: Document -z cet-report=[none|warning|error].
+       * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
+       * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
+       tests.
+       * testsuite/ld-x86-64/x86-64.exp: Likewise.
+       * testsuite/ld-i386/property-x86-cet1.d: New file.
+       * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet6.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
+
+2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New.  Set
+       to "-static-pie" if target compiler supports it.
+       * testsuite/ld-elf/elf.exp: Run -static-pie tests if
+       $STATIC_PIE_LDFLAGS isn't empty.
+       * testsuite/ld-ifunc/ifunc.exp: Likewise.
+
 2019-04-11  Tamar Christina  <tamar.christina@arm.com>
 
        PR ld/24302