Return void from linker callbacks
[external/binutils.git] / ld / ChangeLog
index 6587105..fde9553 100644 (file)
@@ -1,3 +1,278 @@
+2016-05-28  Alan Modra  <amodra@gmail.com>
+
+       * ldmain.c (multiple_definition, multiple_common, add_to_set,
+       constructor_callback, warning_callback, undefined_symbol,
+       reloc_overflow, reloc_dangerous, unattached_reloc): Return void.
+       * emultempl/elf32.em: Adjust callback calls.
+
+2016-05-27  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-0.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-0.d: New
+       test.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d: New
+       test.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-0.d: New
+       test.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d: New
+       test.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-0.s: New test
+       source.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-1.s: New test
+       source.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2016-05-27  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/ld-mips-elf/reloc-local-overflow.d: New test.
+       * testsuite/ld-mips-elf/reloc-local-overflow.s: Source for the
+       new test.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
+
+2016-05-26  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/ld-mips-elf/unaligned-jalx-0.d: Fold
+       `unaligned-jalx-2' here.
+       * testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: Fold
+       `unaligned-jalx-mips16-2' here.
+       * testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: Fold
+       `unaligned-jalx-micromips-2' here.
+       * testsuite/ld-mips-elf/unaligned-jalx-0.s: Update accordingly.
+       * testsuite/ld-mips-elf/unaligned-jalx-1.d: Update error
+       message.
+       * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-jalx-2.d: Remove test.
+       * testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: Remove test.
+       * testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: Remove
+       test.
+       * testsuite/ld-mips-elf/unaligned-jalx-2.s: Remove test source.
+       * testsuite/ld-mips-elf/unaligned-lwpc-0.d: Fold
+       `unaligned-lwpc-3' here.
+       * testsuite/ld-mips-elf/unaligned-lwpc-0.s: Update accordingly.
+       * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Fold
+       `unaligned-lwpc-2' here.
+       * testsuite/ld-mips-elf/unaligned-lwpc-1.s: Update accordingly.
+       * testsuite/ld-mips-elf/unaligned-lwpc-2.d: Remove test.
+       * testsuite/ld-mips-elf/unaligned-lwpc-2.s: Remove test source.
+       * testsuite/ld-mips-elf/unaligned-lwpc-3.d: Remove test.
+       * testsuite/ld-mips-elf/unaligned-lwpc-3.s: Remove test source.
+       * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Fold
+       `unaligned-ldpc-4' here.
+       * testsuite/ld-mips-elf/unaligned-ldpc-0.s: Update accordingly.
+       * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Update error
+       message.  Fold `unaligned-ldpc-2' and `unaligned-ldpc-3' here.
+       * testsuite/ld-mips-elf/unaligned-ldpc-1.s: Update accordingly.
+       * testsuite/ld-mips-elf/unaligned-ldpc-2.d: Remove test.
+       * testsuite/ld-mips-elf/unaligned-ldpc-2.s: Remove test source.
+       * testsuite/ld-mips-elf/unaligned-ldpc-3.d: Remove test.
+       * testsuite/ld-mips-elf/unaligned-ldpc-3.s: Remove test source.
+       * testsuite/ld-mips-elf/unaligned-ldpc-4.d: Remove test.
+       * testsuite/ld-mips-elf/unaligned-ldpc-4.s: Remove test source.
+       * testsuite/ld-mips-elf/mips-elf.exp: Delete removed tests.
+
+2016-05-26  Nick Clifton  <nickc@redhat.com>
+
+       PR target/20134
+       * scripttempl/elf32msp430.sc (.bss): Provide __bssstart and
+       __bsssize.
+       * scripttempl/elf32msp430_3.sc (.bss): Likewise.
+
+2016-05-25  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/ld-mips-elf/unaligned-jalx-0.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-1.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-2.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-mips16-0.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-mips16-1.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-mips16-2.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-micromips-0.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-micromips-1.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-micromips-2.d: New test.
+       * testsuite/ld-mips-elf/unaligned-lwpc-0.d: New test.
+       * testsuite/ld-mips-elf/unaligned-lwpc-1.d: New test.
+       * testsuite/ld-mips-elf/unaligned-lwpc-2.d: New test.
+       * testsuite/ld-mips-elf/unaligned-lwpc-3.d: New test.
+       * testsuite/ld-mips-elf/unaligned-ldpc-0.d: New test.
+       * testsuite/ld-mips-elf/unaligned-ldpc-1.d: New test.
+       * testsuite/ld-mips-elf/unaligned-ldpc-2.d: New test.
+       * testsuite/ld-mips-elf/unaligned-ldpc-3.d: New test.
+       * testsuite/ld-mips-elf/unaligned-ldpc-4.d: New test.
+       * testsuite/ld-mips-elf/unaligned-jalx-0.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-jalx-1.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-jalx-2.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-insn.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-lwpc-0.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-lwpc-1.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-lwpc-2.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-lwpc-3.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-ldpc-0.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-ldpc-1.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-ldpc-2.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-ldpc-3.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-ldpc-4.s: New test source.
+       * testsuite/ld-mips-elf/unaligned-syms.s: New test source.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/20103
+       * ldmain.c (add_archive_element): Don't claim new IR symbols
+       after all IR symbols have been claimed.
+       * plugin.c (plugin_call_claim_file): Remove no_more_claiming
+       check.
+       * testsuite/ld-plugin/lto.exp (pr20103): New proc.
+       Run PR ld/20103 tests.
+       * testsuite/ld-plugin/pr20103a.c: New file.
+       * testsuite/ld-plugin/pr20103b.c: Likewise.
+       * testsuite/ld-plugin/pr20103c.c: Likewise.
+
+2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
+    
+       * testsuite/ld-mips-elf/jalx-local.d: New test.
+       * testsuite/ld-mips-elf/jalx-local-n32.d: New test.
+       * testsuite/ld-mips-elf/jalx-local-n64.d: New test.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
+
+       * Makefile.am: Add earmelf_phoenix.c.
+       * Makefile.in: Regenerate.
+       * configure.tgt: Add entry for arm-phoenix.
+       * emulparams/armelf_phoenix.sh: New file.
+
+2016-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * emultempl/armelf.em (arm_elf_before_allocation): Call
+       bfd_elf32_arm_keep_private_stub_output_sections before generic
+       before_allocation function.
+
+2016-05-20  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/ld-mips-elf/jalx-addend.d: New test.
+       * testsuite/ld-mips-elf/jalx-addend-n32.d: New test.
+       * testsuite/ld-mips-elf/jalx-addend-n64.d: New test.
+       * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
+
+2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/20117
+       * testsuite/ld-i386/i386.exp: Run pr20117.
+       * testsuite/ld-i386/pr19609-1i.d: Updated.
+       * testsuite/ld-i386/pr20117.d: New file.
+       * testsuite/ld-i386/pr20117.s: Likewise.
+
+2016-05-19  Cupertino Miranda  <cmiranda@synopsys.com>
+
+       * testsuite/ld-elf/compressed1d.d: Removed from notarget.
+       * 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/pr12851.d: Likewise.
+       * testsuite/ld-elf/pr12975.d: Likewise.
+       * testsuite/ld-elf/pr13177.d: Likewise.
+       * testsuite/ld-elf/pr13195.d: Likewise.
+       * testsuite/ld-elf/pr17615.d: Likewise.
+       * testsuite/ld-elf/eh-frame-hdr.d: Removed from xfail.
+       * testsuite/ld-elf/group3b.d: Likewise.
+       * testsuite/ld-srec/srec.exp: Likewise.
+       * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark ARC
+       as supporting gc.
+       (check_shared_lib_support): Mark ARC as supporting.
+
+2016-05-19  Cupertino Miranda  <cmiranda@synopsys.com>
+
+       * emulparams/arcelf.sh: Changed.
+       * emulparams/arclinux.sh: Likewise.
+       * scripttempl/arclinux.sc: Moved to a more standard implementation
+       similar to elf.sc.
+
+2016-05-19  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/lib/ld-lib.exp (check_shared_lib_support): Reorder
+       `ft32-*-*' behind `frv-*-*'.
+
+2016-05-19  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * configure.tgt: Remove `am34-*-linux*' support.
+
+2016-05-19  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-scripts/crossref.exp: Remove -mcall-aixdesc hack.
+       * testsuite/ld-scripts/cross2.t: Tweak .opd and .toc placement.
+       * testsuite/ld-scripts/cross3.t: Likewise.
+       * testsuite/ld-scripts/cross4.t: Likewise.
+       * testsuite/ld-scripts/cross5.t: Likewise.
+       * testsuite/ld-scripts/cross6.t: Likewise.
+       * testsuite/ld-scripts/cross7.t: Likewise.
+
+2016-05-19  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Pass in
+       exe name rather than constructing testname.  Fix typo in
+       sub-test name.  Log copying.  Use -rpath rather than -R.
+
+2016-05-18  Nick Clifton  <nickc@redhat.com>
+
+       * scripttempl/ft32.sc: Use fixed constants for memory region
+       lengths.  Include DWARF debug sections.
+       (.data .bss): Do not assign locations during relocatable links.
+       * testsuite/ld-elf/compressed1d.d: Skip for FT32.
+       * testsuite/ld-elf/sec-to-seg.exp: Likewise.
+       * testsuite/ld-elf/sec64k.exp: Likewise.
+       * testsuite/ld-elf/init-fini-array.d: XFail for FT32.
+       * testsuite/ld-elf/merge.d: Likewise.
+       * testsuite/ld-elf/orphan-region.d: Likewise.
+       * testsuite/ld-elf/orphan.s: Likewise.
+       * testsuite/ld-elf/orphan3.d: Likewise.
+       * testsuite/ld-elf/pr349.d: Likewise.
+       * testsuite/ld-elf/warn2.d: Likewise.
+       * testsuite/lib/ld-lib.exp (check_shared_lib_support): Note
+       that the FT32 does not support shared libraries.
+
+2016-05-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/lib/ld-lib.exp (at_least_gcc_version): Check
+       global CC.
+
+2016-05-17  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * scripttempl/avr.sc (text): Place .progmem.data from avr-libc
+       above .progmem*.
+       * scripttempl/avrtiny.sc (text): Likewise.
+
+2016-05-17  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/ld-unique/unique.exp: Use `is_elf_format' and
+       `supports_gnu_unique' to qualify testing.
+
+2016-05-16  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/ld-elf/flags1.d: Update the xfail list.
+
+2016-05-15  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/ld-elf/flags1.d: Update for `*-*-nacl*' xfail
+       removal.
+
+2016-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/20097
+       * testplug2.c (onall_symbols_read): Remove redundant sizeof
+       on EXPECTED_VIEW_LENGTH.
+       * testplug4.c (onall_symbols_read): Likewise.
+
+2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/20093
+       * testsuite/ld-x86-64/pr20093-1.d: New file.
+       * testsuite/ld-x86-64/pr20093-1.s: Likewise.
+       * testsuite/ld-x86-64/pr20093-2.d: Likewise.
+       * testsuite/ld-x86-64/pr20093-2.s: Likewise.
+       * testsuite/ld-x86-64/x86-64.exp: Run pr20093-1 and pr20093-2.
+
 2016-05-13  Alan Modra  <amodra@gmail.com>
 
        * testsuite/ld-arm/arm-elf.exp: Adjust for arm-no-rel-plt now passing.