Revert the last change to emultempl/elf32.em
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 2 Aug 2017 12:08:41 +0000 (05:08 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 2 Aug 2017 12:09:25 +0000 (05:09 -0700)
It will be replaced by a different fix.

* emultempl/elf32.em (_place_orphan): Revert the last change.

ld/ChangeLog
ld/emultempl/elf32.em

index ff99df4f3cc291733378c9147990a99577767153..14c6edd5d1e3366bc931bb6ae7d633228f7bba6f 100644 (file)
@@ -1,3 +1,7 @@
+2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * emultempl/elf32.em (_place_orphan): Revert the last change.
+
 2017-08-02  Max Filippov  <jcmvbkbc@gmail.com>
 
        * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
index 8cdcc6c7f9153aaf2021d3b6618caeb0519f7a8d..d2551b6f2c01b7f9bb4c9bc73842c9142926f289 100644 (file)
@@ -2150,8 +2150,6 @@ gld${EMULATION_NAME}_place_orphan (asection *s,
           one of them has SHF_EXCLUDE.  Don't merge 2 sections with
           different sh_info.  */
        if (os->bfd_section != NULL
-           /* PR 21884: Don't merge non-ELF sections.  */
-           && bfd_get_flavour (os->bfd_section->owner) == bfd_target_elf_flavour
            && (elf_section_data (os->bfd_section)->this_hdr.sh_info
                == elf_section_data (s)->this_hdr.sh_info)
            && (os->bfd_section->flags == 0