ld: Early detection of orphans we know will be discarded
[binutils-gdb.git] / ld / ChangeLog
index fe06729df06e598db2a21901564801d9a6d2e11c..e3faa792f5da7a4ce78c7f3540bcdbd555fab2eb 100644 (file)
@@ -1,3 +1,134 @@
+2017-08-17  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       PR 21961
+       * ldlang.c (lang_discard_section_p): New function.
+       (lang_add_section): Checks moved out into new function, which is
+       now called.
+       (lang_place_orphans): Call lang_discard_section_p instead of
+       duplicating some of the checks from lang_add_section.
+       * testsuite/ld-elf/orphan-11.d: New file.
+       * testsuite/ld-elf/orphan-11.ld: New file.
+       * testsuite/ld-elf/orphan-11.s: New file.
+       * testsuite/ld-elf/orphan-12.d: New file.
+       * testsuite/ld-elf/orphan-12.s: New file.
+
+2017-08-24  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-undefined/fundef.s: New test.
+       * testsuite/ld-undefined/undefined.exp: Test that undefined
+       symbols in shared libraries are made dynamic.
+
+2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/pr21903c.d: Add '\' before --.
+       * testsuite/ld-elf/pr21903d.d: Likewise.
+       * testsuite/ld-elf/pr21903e.d: Likewise.
+
+2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-x86-64/pie2.d: Updated.
+       * testsuite/ld-x86-64/pr19719.d: Likewise.
+       * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
+       * testsuite/ld-x86-64/pr19969.d: Likewise.
+
+2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-i386/i386.exp: Run protected7.
+       * testsuite/ld-i386/protected7.d: New file.
+       * testsuite/ld-i386/protected7.s: Likewise.
+       * testsuite/ld-x86-64/protected8.d: Likewise.
+       * testsuite/ld-x86-64/protected8.s: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Run protected8.
+
+2017-08-23  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-gc/pr19161.d: Don't xfail hppa.
+
+2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
+           Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/pr21964-1a.c (foo): Renamed to ...
+       (foo1): This.
+       * testsuite/ld-elf/pr21964-1b.c: Rewrite.
+       * testsuite/ld-elf/pr21964-1c.c: New file.
+       * testsuite/ld-elf/pr21964-2c.c: Likewise.
+       * testsuite/ld-elf/pr21964-2a.c (foo): Renamed to ...
+       (foo1): This.
+       * testsuite/ld-elf/pr21964-2b.c: Rewrite.
+       * testsuite/ld-elf/shared.exp: Update PR ld/21964 tests.
+
+2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
+           Alan Modra  <amodra@gmail.com>
+
+       PR ld/21964
+       * testsuite/ld-elf/pr21562a.d: Update for changed start/stop symbols.
+       * testsuite/ld-elf/pr21562b.d: Likewise.
+       * testsuite/ld-elf/pr21562c.d: Likewise.
+       * testsuite/ld-elf/pr21562d.d: Likewise.
+       * testsuite/ld-elf/pr21562e.d: Likewise.
+       * testsuite/ld-elf/pr21562f.d: Likewise.
+       * testsuite/ld-elf/pr21562g.d: Likewise.
+       * testsuite/ld-elf/pr21562h.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/sizeofa.d: Likewise.
+       * testsuite/ld-elf/sizeofb.d: Likewise.
+       * testsuite/ld-elf/startofa.d: Likewise.
+       * testsuite/ld-elf/startofb.d: Likewise.
+       * testsuite/ld-gc/pr20022.d: Likewise.
+       * testsuite/ld-gc/start.d: Likewise.
+       * testsuite/ld-elf/pr21964-1a.c: New file.
+       * testsuite/ld-elf/pr21964-1b.c: New file.
+       * testsuite/ld-elf/pr21964-2a.c: New file.
+       * testsuite/ld-elf/pr21964-2b.c: New file.
+       * testsuite/ld-elf/shared.exp: Run PR ld/21964 tests.
+
+2017-08-21  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       PR ld/20125
+       * testsuite/ld-mmix/pr20125.d, testsuite/ld-mmix/pr20125.s: New
+       test.
+
+2017-08-20  A. Wilcox  <awilfox@adelielinux.org>
+
+       PR ld/21976
+       * testsuite/ld-x86-64/plt-main-bnd.dd: Accept '_' in symbol
+       name.
+
+2017-08-17  Nick Clifton  <nickc@redhat.com>
+
+       * po/pt_BR.po: New Brazilian Portuguese translation.
+       * configure.ac (ALL_LINGUAS): Add pt_BR.
+       * configure: Regenerate.
+
+2017-08-14  Alan Modra  <amodra@gmail.com>
+
+       PR 21441
+       * testsuite/ld-x86-64/pr21038a.d: Adjust.
+       * testsuite/ld-x86-64/pr21038a-now.d: Adjust.
+
+2017-08-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-i386/i386.exp: Run pr21884-nacl.
+       * testsuite/ld-x86-64/x86-64.exp: Likewise.
+       * testsuite/ld-i386/pr21884.d: Don't run on nacl targets.
+       * testsuite/ld-x86-64/pr21884.d: Likewise.
+       * testsuite/ld-i386/pr21884.t: Revert the last change.
+       * testsuite/ld-x86-64/pr21884.t: Likewise.
+       * testsuite/ld-i386/pr21884-nacl.d: New file.
+       * testsuite/ld-i386/pr21884-nacl.t: Likewise.
+       * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
+       * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
+
+2017-08-13  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-i386/pr21884.t: Remove unneeded format, arch and entry.
+       * testsuite/ld-x86-64/pr21884.t: Likewise.
+
 2017-08-11  Nick Clifton  <nickc@redhat.com>
 
        * emultempl/elf32.em (handle_option): Accept the -z globalaudit