]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/ChangeLog
ELF: Discard a section if any of its linked-to sections has been discarded
[thirdparty/binutils-gdb.git] / ld / ChangeLog
index 3ad571f169179811e97e5136a40093ed5cbaa98d..221e2d3117f9173f811a4dd02d3304db9c69f269 100644 (file)
@@ -1,3 +1,32 @@
+2020-02-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/25022
+       * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
+       before_place_orphans_default.
+       * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
+       * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
+       ldelf_before_place_orphans.
+       * ldelf.c (ldelf_before_place_orphans): New.
+       * ldelf.h (ldelf_before_place_orphans): Likewise.
+       * ldemul.c (ldemul_before_place_orphans): Likewise.
+       (before_place_orphans_default): Likewise.
+       * ldemul.h (ldemul_before_place_orphans): Likewise.
+       (before_place_orphans_default): Likewise.
+       (ld_emulation_xfer_struct): Add before_place_orphans.
+       * ldlang.c (lang_process): Call ldemul_before_place_orphans
+       before lang_place_orphans.
+       * testsuite/ld-elf/pr25022.d: New file.
+       * testsuite/ld-elf/pr25022.s: Likewise.
+       * testsuite/ld-elf/pr25022.t: Likewise.
+
 2020-02-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/25490