ELF checks for orphan placement
authorAlan Modra <amodra@gmail.com>
Thu, 3 Aug 2017 04:31:34 +0000 (14:01 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 3 Aug 2017 05:10:49 +0000 (14:40 +0930)
commit2e9246e077cdbbff0a56a810c5750cc895382ba3
treeca91010e575239664418454af88a90f36a4fc9d8
parent5f66bad45bdf1c9a9806ed27e64b724d6ba50b16
ELF checks for orphan placement

The loop checking for previous orphan placement should run even when
the output is non-ELF.

PR ld/21884
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Revert
last change.  Rename iself to elfinput.  Expand comments.  Condition
ELF checks on having both input and output ELF files.  Extract..
(elf_orphan_compatible): ..this new function.
ld/ChangeLog
ld/emultempl/elf32.em