+2017-05-19 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-i386/i386.exp: Run property-x86-4a and
+ property-x86-4b.
+ * testsuite/ld-x86-64/x86-64.exp: Likewise.
+ * testsuite/ld-i386/property-x86-4a.d: New file.
+ * testsuite/ld-i386/property-x86-4a.s: Likewise.
+ * testsuite/ld-i386/property-x86-4b.d: Likewise.
+ * testsuite/ld-i386/property-x86-4b.s: Likewise.
+ * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
+ * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
+ * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
+ * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
+
+2017-05-19 Georg-Johann Lay <avr@gjlay.de>
+
+ PR ld/21472
+ * emulparams/avrxmega3.sh (RODATA_PM_OFFSET): Set to 0x8000.
+ * scripttempl/avr.sc (__RODATA_PM_OFFSET__) [RODATA_PM_OFFSET]:
+ Use RODATA_PM_OFFSET as default if not already defined.
+ (.data) [!RODATA_PM_OFFSET]: Don't include .rodata and friends.
+ (.rodata) [RODATA_PM_OFFSET]: Put at an offset of
+ __RODATA_PM_OFFSET__.
+
+2017-05-18 Nick Clifton <nickc@redhat.com>
+
+ PR ld/21251
+ * ldfile.c (ldfile_add_library_path): If the path starts with
+ $SYSROOT then use the sysroot as the real prefix.
+ * ldlang.c (lang_add_input_file): Treat $SYSROOT in the same
+ way as =.
+ * ldlex.l: Add $SYSROOT as allow prefix for a filename.
+ * ld.texinfo (-L): Document that $SYSROOT acts like = when
+ prefixing a library search path.
+ (INPUT): Likewise.
+ * testsuite/ld-scripts/sysroot-prefix.exp: Add $SYSROOT prefix
+ tests.
+
+2017-05-18 Alan Modra <amodra@gmail.com>
+
+ * emultempl/elf32.em: Don't compare boolean values against TRUE or FALSE.
+ * emultempl/pe.em: Likewise.
+ * emultempl/pep.em: Likewise.
+ * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
+ Don't compare enum against TRUE.
+
+2017-05-18 Alan Modra <amodra@gmail.com>
+
+ PR ld/20882
+ * testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas.
+ Allow for 16-bit address targets and match expected data fully.
+ * testsuite/ld-gc/pr20882a.s: Delete .debug_line section.
+ * testsuite/ld-gc/pr20882b.s: Likewise.
+ * testsuite/ld-gc/pr20882c.s: Likewise.
+
+2017-05-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/20882
+ * testsuite/ld-gc/gc.exp: Run pr20882.
+ * testsuite/ld-gc/pr20882.d: New file.
+ * testsuite/ld-gc/pr20882a.s: Likewise.
+ * testsuite/ld-gc/pr20882b.s: Likewise.
+ * testsuite/ld-gc/pr20882c.s: Likewise.
+
+2017-05-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21481
+ * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only
+ if IFUNC is supported by run-time.
+
+2017-05-16 Alan Modra <amodra@gmail.com>
+
+ * plugin.c: Rename occurrences of non_ir_ref.
+
+2017-05-16 Alan Modra <amodra@gmail.com>
+
+ * plugin.c (is_visible_from_outside): Use non_ir_ref_dynamic.
+ (plugin_notice): Set non_ir_ref for references from regular
+ objects, non_ir_ref_dynamic for references from dynamic objects.
+
+2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/ld-mips-elf/mips16e2-pcrel-0.d: New test.
+ * testsuite/ld-mips-elf/mips16e2-pcrel-1.d: New test.
+ * testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: New test.
+ * testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: New test.
+ * testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: New test.
+ * testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: New test.
+ * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: New test.
+ * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: New test.
+ * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2017-05-15 Nick Clifton <nickc@redhat.com>
+
+ PR ld/21459
+ * scripttempl/pe.sc: Add .debug_gdb_scripts section.
+ * scripttempl/pep.sc: Likewise.
+
+2017-05-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-i386/i386.exp: Run property-x86-3.
+ * testsuite/ld-x86-64/x86-64.exp: Likewise.
+ * testsuite/ld-i386/property-x86-3.d: New file.
+ * testsuite/ld-i386/property-x86-3.s: Likewise.
+ * testsuite/ld-x86-64/property-x86-3.d: Likewise.
+ * testsuite/ld-x86-64/property-x86-3.s: Likewise.
+
+2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Replace
+ .plt.bnd with .plt.sec.
+ * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
+ * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
+ * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
+ * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
+ * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
+ * testsuite/ld-x86-64/mpx3.dd: Likewise.
+ * testsuite/ld-x86-64/mpx3n.dd: Likewise.
+ * testsuite/ld-x86-64/mpx4.dd: Likewise.
+ * testsuite/ld-x86-64/mpx4n.dd: Likewise.
+ * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
+ * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
+ * testsuite/ld-x86-64/pr21038b.d: Likewise.
+ * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
+ * testsuite/ld-x86-64/pr21038c.d: Likewise.
+
+2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-i386/plt-pic2.dd: Updated.
+ * testsuite/ld-i386/plt2.dd: Likewise.
+ * testsuite/ld-i386/plt2.rd: Likewise.
+ * testsuite/ld-i386/pr17689now.rd: Likewise.
+ * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
+ * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
+ * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
+ * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
+ * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
+ * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
+ * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
+ * testsuite/ld-x86-64/plt2.dd: Likewise.
+ * testsuite/ld-x86-64/plt2.rd: Likewise.
+ * testsuite/ld-x86-64/pr17689now.rd: Likewise.
+ * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
+ * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
+
+2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Set
+ to yes.
+ * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
+ Likewise.
+ * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Likewise.
+
+2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21481
+ * testsuite/ld-x86-64/pr21481a.c: New file.
+ * testsuite/ld-x86-64/pr21481b.S: Likewise.
+ * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests.
+
+2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * testsuite/ld-arc/attr-merge-0.d: New file.
+ * testsuite/ld-arc/attr-merge-0.s: Likewise.
+ * testsuite/ld-arc/attr-merge-0e.s: Likewise.
+ * testsuite/ld-arc/attr-merge-1.d: Likewise.
+ * testsuite/ld-arc/attr-merge-1.s: Likewise.
+ * testsuite/ld-arc/attr-merge-1e.s: Likewise.
+ * testsuite/ld-arc/attr-merge-2.d: Likewise.
+ * testsuite/ld-arc/attr-merge-2.s: Likewise.
+ * testsuite/ld-arc/attr-merge-3.d: Likewise.
+ * testsuite/ld-arc/attr-merge-3.s: Likewise.
+ * testsuite/ld-arc/attr-merge-3e.s: Likewise.
+ * testsuite/ld-arc/attr-merge-4.s: Likewise.
+ * testsuite/ld-arc/attr-merge-5.d: Likewise.
+ * testsuite/ld-arc/attr-merge-5a.s: Likewise.
+ * testsuite/ld-arc/attr-merge-5b.s: Likewise.
+ * testsuite/ld-arc/attr-merge-conflict-isa.d: Likewise.
+ * testsuite/ld-arc/attr-merge-err-isa.d: Likewise.
+ * testsuite/ld-arc/attr-merge-incompatible-cpu.d: Likewise.
+ * testsuite/ld-arc/got-01.d: Update test.
+ * testsuite/ld-arc/attr-merge-err-quarkse.d: New file.
+ * testsuite/ld-arc/attr-quarkse.s: Likewise.
+ * testsuite/ld-arc/attr-quarkse2.s: Likewise.
+
+2017-05-09 Awson <kyrab@mail.ru>
+
+ PR ld/21471
+ * pe-dll.c (pe_detail_list): Add entry for pe-bigobj-x86-64.
+
+2017-05-09 Benjamin Peterson <bp@benjamin.pe>
+
+ * ld.texinfo (orphan sections): Grammar fix.
+
+2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: New file.
+ * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
+ * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
+ * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
+ * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
+ * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
+ * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
+ * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
+ * testsuite/ld-x86-64/mpx3n.dd: Likewise.
+ * testsuite/ld-x86-64/mpx4n.dd: Likewise.
+ * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
+ * testsuite/ld-x86-64/plt2.dd: Likewise.
+ * testsuite/ld-x86-64/plt2.rd: Likewise.
+ * testsuite/ld-x86-64/plt2.s: Likewise.
+ * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
+ * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
+ * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
+ * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
+ * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
+ * testsuite/ld-x86-64/load1b-nacl.d: Updated.
+ * testsuite/ld-x86-64/load1b.d: Likewise.
+ * testsuite/ld-x86-64/plt-main-bnd.dd: Likewise.
+ * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
+ * testsuite/ld-x86-64/pr20830a.d: Update the .plt.got section
+ with func@plt.
+ * testsuite/ld-x86-64/pr20830b.d: Likewise.
+ * testsuite/ld-x86-64/pr21038a.d: Likewise.
+ * testsuite/ld-x86-64/pr21038c.d: Likewise.
+ * testsuite/ld-x86-64/mpx.exp: Add some -z now tests.
+ * testsuite/ld-x86-64/x86-64.exp: Likewise.
+
+2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-i386/i386.exp: Add some -z now tests.
+ * testsuite/ld-i386/plt-pic2.dd: New file.
+ * testsuite/ld-i386/plt2.dd: Likewise.
+ * testsuite/ld-i386/plt2.rd: Likewise.
+ * testsuite/ld-i386/plt2.s: Likewise.
+ * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
+ * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
+ * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
+ * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
+ * testsuite/ld-i386/pr20830.d: Update the .plt.got section
+ with func@plt.
+
+2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
+
+ * testsuite/ld-arm/arm-elf.exp
+ (Secure gateway import library generation): Check e_type field
+ of import library and executable produced.
+ * testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
+
+2017-04-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
+
+ PR ld/21404
+ * testsuite/ld-avr/pr21404-1.d: New test.
+ * testsuite/ld-avr/pr21404-1.s: New test.
+ * testsuite/ld-avr/pr21404-2.d: New test.
+ * testsuite/ld-avr/pr21404-2.s: New test.
+ * testsuite/ld-avr/pr21404-3.d: New test.
+ * testsuite/ld-avr/pr21404-3.s: New test.
+ * testsuite/ld-avr/pr21404-4.d: New test.
+ * testsuite/ld-avr/pr21404-4.s: New test.
+ * testsuite/ld-avr/pr21404-5.d: New test.
+ * testsuite/ld-avr/pr21404-5.s: New test.
+ * testsuite/ld-avr/pr21404-6.d: New test.
+ * testsuite/ld-avr/pr21404-6.s: New test.
+ * testsuite/ld-avr/pr21404-7.d: New test.
+ * testsuite/ld-avr/pr21404-7.s: New test.
+ * testsuite/ld-avr/pr21404-8.d: New test.
+ * testsuite/ld-avr/pr21404-8.s: New test.
+
+2017-05-03 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/ld-mips-elf/mips16-pcrel-0.d: New test.
+ * testsuite/ld-mips-elf/mips16-pcrel-1.d: New test.
+ * testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: New test.
+ * testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: New test.
+ * testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: New test.
+ * testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: New test.
+ * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: New test.
+ * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: New test.
+ * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2017-05-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-elf/pr21384.d: Adjusted to accommodate
+ additional dynamic symbols on some targets.
+
+2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: New test.
+ * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: New test.
+ * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d: New
+ test.
+ * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d: New
+ test.
+ * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d: New
+ test.
+ * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
+ New test.
+ * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d: New
+ test.
+ * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d: New
+ test.
+ * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
+ New test.
+ * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
+ "TLS without PLT (1)" and "TLS without PLT (3)".
+ * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
+ to "TLS without PLT (3)".
+
+2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21384
+ * testsuite/ld-elf/pr21384.d: New file.
+ * testsuite/ld-elf/pr21384.dl: Likewise.
+ * testsuite/ld-elf/pr21384.ld: Likewise.
+ * testsuite/ld-elf/pr21384.s: Likewise.
+
+2017-05-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-i386/tls.exp: Run GNU2 TLS tests only if there
+ is working GNU2 TLS support.
+ * testsuite/ld-x86-64/tls.exp: Likewise.
+ * testsuite/lib/ld-lib.exp (check_gnu2_tls_available): New proc.
+
+2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/config/default.exp (GNU2_CFLAGS): New. Set
+ to -mtls-dialect=gnu2 if target compiler supports it.
+ * testsuite/ld-i386/tls.exp: Run -mtls-dialect=gnu2 tests.
+ * testsuite/ld-x86-64/tls.exp: Likewise.
+ * testsuite/ld-i386/tlsdesc1a.c: New file.
+ * testsuite/ld-i386/tlsdesc1b.c: Likewise.
+ * testsuite/ld-x86-64/tlsdesc1a.c: Likewise.
+ * testsuite/ld-x86-64/tlsdesc1b.c: Likewise.
+
+2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-elf/shared.exp: Add run-time tests for -z now.
+ * testsuite/ld-i386/tls.exp: Likewise.
+ * testsuite/ld-ifunc/ifunc.exp: Likewise.
+ * testsuite/ld-x86-64/tls.exp: Likewise.
+
+2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-x86-64/pr21038a.d: Update DW_CFA_nop paddings
+ in .eh_frame section.
+ * testsuite/ld-x86-64/pr21038c.d: Update .eh_frame order.
+
+2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-i386/tlsdesc2.d: New test.
+ * testsuite/ld-x86-64/tlsdesc2.d: Likewise.
+
+2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
+
+ PR ld/21334
+ * testsuite/ld-mips-elf/pr21334.dd: New test.
+ * testsuite/ld-mips-elf/pr21334.gd: New test.
+ * testsuite/ld-mips-elf/pr21334.ld: New test linker script.
+ * testsuite/ld-mips-elf/pr21334.s: New test source.
+ * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-x86-64/no-plt.exp: Also check no-plt-1e.nd.
+ * testsuite/ld-x86-64/no-plt-1e.nd: New file.
+
+2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-i386/pr12570a.d: Skip for nacl targets.
+ * testsuite/ld-i386/pr12570b.d: Likewise.
+
+2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/20815
+ * testsuite/ld-i386/vxworks2.sd: Add space for program headers.
+
+2017-04-24 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * testsuite/ld-sparc/tlssunbin64.dd: Expect `return' instructions
+ instead of `rett' in V9.
+ * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
+ * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
+
+2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21402
+ * testsuite/ld-elf/indirect.exp: Don't skip PIE indirect5 and
+ indirect6 tests on i386.
+
+2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/19617
+ PR ld/21086
+ * testsuite/ld-elf/pr19617a.d: Pass --no-dynamic-linker to ld.
+ * testsuite/ld-elf/pr19617b.d: Likewise.
+ * testsuite/ld-elf/pr19617c.d: Likewise.
+ *testsuite/ld-i386/pr19636-4d.d: Likewise.
+ * testsuite/ld-elf/readelf.exp: Pass --no-dynamic-linker to ld
+ with --export-dynamic.
+ * testsuite/ld-elf/shared.exp: Pass --no-dynamic-linker to ld
+ with -E.
+
+2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21402
+ * testsuite/ld-elf/indirect.exp: Pass $NOPIE_LDFLAGS and
+ $NOPIE_CFLAGS to non-PIE indirect5 and indirect6 tests. Skip
+ PIE indirect5 and indirect6 tests on i386.
+
+2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/ld-mips-elf/mips-elf.exp: Join `__ehdr_start' tests.
+
+2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21382
+ * plugin.c (is_visible_from_outside): Symbol may be visible
+ from outside if dynamic_ref_after_ir_def is set.
+ (plugin_notice): Set dynamic_ref_after_ir_def if the symbol is
+ defined in an IR object and referenced in a dynamic object.
+ * testsuite/ld-plugin/lto.exp: Run PR ld/21382 tests.
+ * testsuite/ld-plugin/pr21382a.c: New file.
+ * testsuite/ld-plugin/pr21382b.c: Likewise.
+
+2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21401
+ * testsuite/ld-ifunc/ifunc.exp: Add a libtest-2-now.so test with
+ -z now.
+
+2017-04-19 Alan Modra <amodra@gmail.com>
+
+ * ld.texinfo (dynamic-undefined-weak): Document.
+ (nodynamic-undefined-weak): Document that this option now can
+ be used with shared libs.
+ * emulparams/dynamic_undefined_weak.sh: Support -z
+ dynamic-undefined-weak.
+ * emulparams/elf32ppccommon.sh: Include dynamic_undefined_weak.sh.
+ * testsuite/ld-undefined/weak-undef.exp (undef_weak_so),
+ (undef_weak_exe): New. Use them. Add -z dynamic-undefined-weak
+ and -z nodynamic-undefined-weak tests.
+ * Makefile.am: Update powerpc dependencies.
+ * Makefile.in: Regenerate.
+
+2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21389
+ * testsuite/ld-elf/pr21389.map: New file.
+ * testsuite/ld-elf/pr21389.s: Likewise.
+ * testsuite/ld-elf/pr21389a.d: Likewise.
+ * testsuite/ld-elf/pr21389b.d: Likewise.
+ * testsuite/ld-elf/pr21389c.d: Likewise.
+
+2017-04-17 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/indirect5a.c,
+ * testsuite/ld-elf/indirect5b.c,
+ * testsuite/ld-elf/indirect5.map,
+ * testsuite/ld-elf/indirect5.out: New test.
+ * testsuite/ld-elf/indirect6a.c: Likewise.
+ * testsuite/ld-elf/indirect.exp (check_dynamic_syms): New proc.
+ Run new tests and check dynsyms.
+
+2017-04-11 Alan Modra <amodra@gmail.com>
+
+ PR 21274
+ PR 18466
+ * emultempl/pe.em (pe_find_data_imports): Don't use fixed size
+ symbol buffer. Instead, xmalloc max size needed with space for
+ prefix. Wrap overlong lines. Formatting. Pass symbol buffer
+ copy of name to pe_walk_relocs_of_symbol.
+ (make_inport_fixup): Add "name" param, pass to pe_create_import_fixup.
+ * emultempl/pe.em (pep_find_data_imports): As for pe_find_data_imports.
+ (make_import_fixup): Add "name" param, pass to pep_create_import_fixup.
+ Use bfd_get_signed_* and remove unnecessary casts. Formatting.
+ * pe-dll.c (pe_walk_relocs_of_symbol): Add "name" param. Pass to
+ callback.
+ (make_import_fixup_mark): Add "name" param. Make use of prefix
+ space rather than xmalloc here.
+ (pe_create_import_fixup): Likewise.
+ * pe-dll.h (pe_walk_relocs_of_symbol): Update prototype.
+ (pe_create_import_fixup): Likewise.
+ * pep-dll.h (pep_walk_relocs_of_symbol): Likewise.
+ (pep_create_import_fixup): Likewise.
+
+2017-04-10 Nick Clifton <nickc@redhat.com>
+
+ * ld.texinfo (--strip-discarded): Document.
+ (--embedded-relocs): Document.
+ (--spare-dynamic-tags): Document.
+ (--task-link): Document.
+
+2017-04-10 Alan Modra <amodra@gmail.com>
+
+ PR 21287
+ * testsuite/ld-elf/init-fini-arrays.d: Match INIT_ARRAY and FINI_ARRAY.
+ * testsuite/ld-elf/init-fini-arrays.s: Use %init_array and %fini_array
+ section types.
+ * testsuite/lib/ld-lib.exp (default_ld_compile): Trim assembler
+ warnings about "ignoring incorrect section type".
+ (run_ld_link_exec_tests, run_cc_link_tests): Delete old comment.
+
+2017-04-10 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Delete
+ sh1p.o, sh2p.o, sh1np.o and sh2np.o before compiling. Use
+ remote_file host exists rather than file exists.
+
+2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21090
+ * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Use
+ NOPIE_CFLAGS and NOPIE_LDFLAGS to disable PIE for the non-pie
+ version of the test.
+
+2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/19579
+ PR ld/21306
+ * testsuite/ld-elf/pr19579a.c (main): Updated.
+
+2017-04-07 Nick Clifton <nickc@redhat.com>
+
+ PR 21090
+ * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
+ disable PIE for the non-pie version of the test.
+
+2017-04-07 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
+
+2017-04-07 gingold <gingold@gingold-Precision-7510>
+
+ * testsuite/ld-pe/pe.exp: New test.
+ * testsuite/ld-pe/weakdef-1.s: New test source.
+ * testsuite/ld-pe/weakdef-1.d: New test.
+
+2017-04-07 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
+ * testsuite/ld-elf/mbind1b.d: Likewise.
+ * testsuite/ld-elf/mbind1c.d: Likewise.
+
+2017-04-05 Hans-Peter Nilsson <hp@axis.com>
+
+ PR ld/21233
+ * testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
+ indentation issue introduced with last commit.
+
+2017-04-05 Hans-Peter Nilsson <hp@axis.com>
+
+ PR ld/21233
+ * testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
+ first test for cris*-*-*.
+
+2017-04-04 Maciej W. Rozycki <macro@imgtec.com>
+
+ PR ld/21233
+ * ldlang.c (insert_undefined): Set `mark' for ELF symbols.
+ * testsuite/ld-elf/pr21233.sd: New test.
+ * testsuite/ld-elf/pr21233-l.sd: New test.
+ * testsuite/ld-elf/pr21233.ld: New test linker script.
+ * testsuite/ld-elf/pr21233-e.ld: New test linker script.
+ * testsuite/ld-elf/pr21233.s: New test source.
+ * testsuite/ld-elf/pr21233-l.s: New test source.
+ * testsuite/ld-elf/shared.exp: Run the new tests.
+
+2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ * NEWS: Mention support for ELF SHF_GNU_MBIND and
+ PT_GNU_MBIND_XXX.
+ * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
+ input GNU_MBIND sections with the same type, attributes and
+ sh_info field into a single output GNU_MBIND section.
+ * testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
+ * testsuite/ld-elf/mbind1.s: New file.
+ * testsuite/ld-elf/mbind1a.d: Likewise.
+ * testsuite/ld-elf/mbind1b.d: Likewise.
+ * testsuite/ld-elf/mbind1c.d: Likewise.
+ * testsuite/ld-elf/mbind2a.s: Likewise.
+ * testsuite/ld-elf/mbind2b.c: Likewise.
+
+2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * NEWS: Mention support for ELF GNU program properties.
+ * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
+ ELF setup_gnu_properties.
+ * testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
+ * testsuite/ld-i386/pass.c: New file.
+ * testsuite/ld-i386/property-1.r: Likewise.
+ * testsuite/ld-i386/property-2.r: Likewise.
+ * testsuite/ld-i386/property-3.r: Likewise.
+ * testsuite/ld-i386/property-4.r: Likewise.
+ * testsuite/ld-i386/property-5.r: Likewise.
+ * testsuite/ld-i386/property-6.r: Likewise.
+ * testsuite/ld-i386/property-6a.c: Likewise.
+ * testsuite/ld-i386/property-6b.c: Likewise.
+ * testsuite/ld-i386/property-6c.S: Likewise.
+ * testsuite/ld-i386/property-7.r: Likewise.
+ * testsuite/ld-i386/property-no-copy.S: Likewise.
+ * testsuite/ld-i386/property-stack.S: Likewise.
+ * testsuite/ld-i386/property-unsorted-1.S: Likewise.
+ * testsuite/ld-i386/property-unsorted-2.S: Likewise.
+ * testsuite/ld-i386/property-x86-1.S: Likewise.
+ * testsuite/ld-i386/property-x86-2.S: Likewise.
+ * testsuite/ld-x86-64/pass.c: Likewise.
+ * testsuite/ld-x86-64/property-1.r: Likewise.
+ * testsuite/ld-x86-64/property-2.r: Likewise.
+ * testsuite/ld-x86-64/property-3.r: Likewise.
+ * testsuite/ld-x86-64/property-4.r: Likewise.
+ * testsuite/ld-x86-64/property-5.r: Likewise.
+ * testsuite/ld-x86-64/property-6.r: Likewise.
+ * testsuite/ld-x86-64/property-6a.c: Likewise.
+ * testsuite/ld-x86-64/property-6b.c: Likewise.
+ * testsuite/ld-x86-64/property-6c.S: Likewise.
+ * testsuite/ld-x86-64/property-7.r: Likewise.
+ * testsuite/ld-x86-64/property-no-copy.S: Likewise.
+ * testsuite/ld-x86-64/property-stack.S: Likewise.
+ * testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
+ * testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
+ * testsuite/ld-x86-64/property-x86-1.S: Likewise.
+ * testsuite/ld-x86-64/property-x86-2.S: Likewise.
+ * testsuite/ld-x86-64/x86-64.exp: Run property tests for
+ Linux/x86-64.
+
+2017-03-28 Hans-Peter Nilsson <hp@axis.com>
+
+ PR ld/16044
+ * testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
+ testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
+
+2017-03-21 Sandra Loosemore <sandra@codesourcery.com>
+
+ * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
+ false for nios2-*-elf.
+
+2017-03-21 gingold <gingold@gingold-Precision-7510>
+
+ * ldlang.c (lang_check_section_addresses): Check only for
+ allocated sections.
+
+2017-03-17 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
+
+2017-03-15 Tristan Gingold <gingold@adacore.com>
+
+ * testsuite/ld-checks/checks.exp (overflow_check): Disable for
+ non-elf targets.
+
+2017-03-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ldlang.c (lang_check_section_addresses): Use addr_mask to
+ check VMA and LMA.
+
+2017-03-13 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21202
+ * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
+
+2017-03-13 Tristan Gingold <gingold@adacore.com>
+
+ * ldlang.c (lang_check_section_addresses): Check for address space
+ overflow.
+ * testsuite/ld-checks/checks.exp (overflow_check): New procedure
+ * testsuite/ld-checks/over.s: New test source.
+ * testsuite/ld-checks/over.d: New test.
+ * testsuite/ld-checks/over2.s: New test source.
+ * testsuite/ld-checks/over2.d: New test.
+
+2017-03-13 Alexey Neyman <stilor@att.net>
+
+ * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
+ cpu, not host.
+
+2017-03-11 Alan Modra <amodra@gmail.com>
+
+ * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
+ sysroot for -rpath search.
+
+2017-03-11 Alan Modra <amodra@gmail.com>
+
+ * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
+ Only prefix absolute paths with sysroot. Handle DOS paths.
+ (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
+ (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
+ (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
+ searches. Rename variable. Simplify get_runpath search.
+
+2017-03-11 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
+ than -rdynamic.
+
+2017-03-11 Alan Modra <amodra@gmail.com>
+
+ * ld.texinfo (Orphan Sections): Mention that not all targets
+ handle orphans well.
+ * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
+ * testsuite/ld-elf/orphan-10.d: Likewise.
+
+2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * ldlang.c (lang_size_sections_1): Shortcut loop only after
+ tracking changes to the default regions LMA.
+ * testsuite/ld-elf/orphan-9.ld: Extend header comment.
+ * testsuite/ld-elf/orphan-10.d: New file.
+ * testsuite/ld-elf/orphan-10.s: New file.
+ * NEWS: Mention change in behaviour.
+
+2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * ldlang.c (lang_leave_output_section_statement): Move lma_region
+ logic to...
+ (lang_propagate_lma_regions): ...this new function.
+ (lang_process): Call new function.
+ * testsuite/ld-elf/orphan-9.d: New file.
+ * testsuite/ld-elf/orphan-9.ld: New file.
+ * testsuite/ld-elf/orphan-9.s: New file.
+ * NEWS: Mention change in behaviour.
+
+2017-03-07 Alan Modra <amodra@gmail.com>
+
+ * ldlang.c (open_input_bfds): Check that lang_assignment_statement
+ is not an assert before referencing defsym.
+
+2017-03-05 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
+ * testsuite/ld-elf/eh6.d: Likewise.
+ * testsuite/ld-alpha/tlsbin.dd: Likewise.
+ * testsuite/ld-alpha/tlsbin.td: Likewise.
+ * testsuite/ld-alpha/tlsbinr.dd: Likewise.
+ * testsuite/ld-alpha/tlspic.dd: Likewise.
+ * testsuite/ld-alpha/tlspic.rd: Likewise.
+ * testsuite/ld-alpha/tlspic.sd: Likewise.
+ * testsuite/ld-alpha/tlspic.td: Likewise.
+ * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
+ * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
+ * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
+ * testsuite/ld-x86-64/pr20830a.d: Likewise.
+ * testsuite/ld-x86-64/pr21038a.d: Likewise.
+ * testsuite/ld-x86-64/pr21038b.d: Likewise.
+ * testsuite/ld-x86-64/pr21038c.d: Likewise.
+
+2017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
+
+ PR 12969
+ * pe-dll.c (generate_edata): Fail if the input file(s) require too
+ many ordinals.
+
+2017-03-02 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
+ and dl3.cc.
+
+2017-02-28 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/merge.d: xfail for nios.
+
+2017-02-28 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
+ limits of addpcis range.
+
+2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
+ instructions.
+ * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
+ * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
+
+2017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
+
+ PR target/20849
+ * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
+ (.rodata): New section.
+ (.data): Remove .rodata*.
+
+2017-02-25 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
+ Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
+ defining HPUX where necessary. Define HPUX for implib tests.
+ * testsuite/ld-elf/comm-data4.d: Run for hpux.
+ * testsuite/ld-elf/endsym.d: Likewise.
+ * testsuite/ld-elf/linkoncerdiff.d: Likewise.
+ * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
+ * testsuite/ld-elf/comm-data5.s: Likewise.
+ * testsuite/ld-elf/endsym.s: Likewise.
+ * testsuite/ld-elf/pr14170c.s: Likewise.
+ * testsuite/ld-elf/symbol3.s: Likewise.
+ * testsuite/ld-elf/implib.s: Likewise. Don't start directives
+ in first column.
+ * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
+ * testsuite/ld-elf/warn3.d: Run for hpux.
+ * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
+ * testsuite/ld-scripts/rgn-at11.d: Likewise.
+ * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
+
+2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/ld-elf/ver_def.vd: New test.
+ * testsuite/ld-elf/ver_def-tic6x.vd: New test.
+ * testsuite/ld-elf/ver_def.ld: New test linker script.
+ * testsuite/ld-elf/ver_def.ver: New test version script.
+ * testsuite/ld-elf/ver_def.s: New test source.
+ * testsuite/ld-elf/readelf.exp: New test script.
+
+2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
+ option.
+ * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
+ * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
+ * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
+
+2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/ld-mips-elf/jalr4.dd: New test.
+ * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
+
+2017-02-23 Alan Modra <amodra@gmail.com>
+
+ PR 20744
+ * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
+ each group.
+ * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
+ and sdarel reloc fix.
+
+2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
+
+ PR ld/20828
+ * testsuite/ld-elf/pr20828-d.sd: New test.
+ * testsuite/ld-elf/pr20828-e.sd: New test.
+ * testsuite/ld-elf/pr20828-v.od: New test.
+ * testsuite/ld-elf/pr20828-v.ver: New test version script.
+ * testsuite/ld-elf/pr20828-v.ld: New test linker script.
+ * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
+ `.gnu.version_d'.
+ * testsuite/ld-elf/shared.exp: Run the new tests.
+
+2017-02-21 Nick Clifton <nickc@redhat.com>
+
+ * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
+ about non-void function returning without a result.
+
+2017-02-17 Alan Modra <amodra@gmail.com>
+
+ PR 15041
+ * scripttempl/pe.sc: Don't combine sections for ld -r.
+ * scripttempl/pep.sc: Likewise.
+
2017-02-17 Alan Modra <amodra@gmail.com>
- PR 20199
+ PR 21099
* emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
rather than using OTHER_SECTIONS.
* emulparams/elf32mt.sh: Likewise.