elf: Strip zero-sized dynamic sections
[deliverable/binutils-gdb.git] / ld / ChangeLog
index ec43c89a593372e9eb92a11e24c1acfe8e0c6ac8..1169f93373ee4bb132fac794b6e53ff1f46a383f 100644 (file)
@@ -1,3 +1,121 @@
+2020-04-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/25849
+       * ldelfgen.c (ldelf_map_segments): Call
+       elf_backend_strip_zero_sized_dynamic_sections.
+       * testsuite/ld-alpha/tlsbinr.rd: Updated.
+
+2020-04-20  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
+       * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
+       * testsuite/ld-powerpc/tlsopt6.d: Likewise.
+
+2020-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
+       * testsuite/ld-elf/warn2.d: Likewise.
+
+2020-04-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
+       alpha target.
+       * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
+
+2020-04-16  Stephen Casner  <casner@acm.org>
+
+       PR 18963
+       * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
+       16-bit address space.
+       * testsuite/ld-scripts/pr18963.d: Likewise.
+
+2020-04-17  Juan Manuel Guerrero  <juan.guerrero@gmx.de>
+            Jan W. Jagersma  <jwjagersma@gmail.com>
+
+       * scripttempl/i386go32.sc: Provide symbol _environ.  Link in
+       .ctors and .dtors.  Discard LTO sections.
+
+2020-04-17  Nick Clifton  <nickc@redhat.com>
+
+       * testsuite/config/default.exp: If not already set then create the
+       CCC_OVERRIDE_OPTIONS environment variable to help when running the
+       testsuite with clang.
+       * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
+       * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
+       were built before attempting to copy them.
+
+2020-04-15  Fangrui Song <maskray@google.com>
+
+       PR binutils/24613
+       * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
+       RM_GENERATE_ERROR to RM_DIAGNOSE.
+       * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
+       RM_GENERATE_ERROR to RM_DIAGNOSE.
+       * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
+
+2020-04-14  Stephen Casner  <casner@acm.org>
+
+       PR ld/25677
+       * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
+       (EXTRA_EM_FILE): New, add emulation file pdp11.
+       * scripttempl/pdp11.sc: New, derived from aout.sc without
+       irrelevant input sections.
+       * emultempl/pdp11.em (_add_options, _handle_option)
+       (_list_options): New. Add options -z, --imagic for pdp11-aout.
+       (_before_parse): Make --omagic be default instead of --nmagic.
+       (_get_script): Modify special-case linker script for --imagic.
+       * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
+       * ld.texi (Options): Add documentation of PDP11-specific options.
+       (Options): Fix unrelated typo to --no-compact-branches.
+       * gen-doc.texi: @set PDP11.
+       * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
+       * testsuite/ld-pdp11/sections.s: New, source for options tests.
+       * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
+       * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
+       * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
+       * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
+
+2020-04-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/25707
+       * testsuite/ld-arm/armthumb-lib.sym: Updated.
+       * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
+       * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
+       * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
+       * testsuite/ld-arm/fdpic-main.sym: Likewise.
+       * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
+       * testsuite/ld-arm/fdpic-shared.sym: Likewise.
+       * testsuite/ld-arm/mixed-app.sym: Likewise.
+       * testsuite/ld-arm/mixed-lib.sym: Likewise.
+       * testsuite/ld-arm/preempt-app.sym: Likewise.
+       * testsuite/ld-elf/hash.d: Likewise.
+       * testsuite/ld-elf/pr13195.d: Likewise.
+       * testsuite/ld-elfvsb/hidden2.d: Likewise.
+       * testsuite/ld-mips-elf/hash2.d: Likewise.
+
+2020-04-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * testsuite/ld-shared/shared.exp: Remove dangling comments.
+       xfail shared non PIC tests on Solaris.
+
+2020-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
+
+2020-04-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
+       nopie with available.
+
+2020-04-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
+       Set to "-fcf-protection=none" if target compiler supports it.
+       * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
+       CC and CXX.
+       * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
+       to PLT BND tests.
+
 2020-04-02  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
This page took 0.025329 seconds and 4 git commands to generate.