Consistency check for merge sections
authorAlan Modra <amodra@gmail.com>
Wed, 30 Sep 2015 02:15:32 +0000 (11:45 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 30 Sep 2015 06:36:09 +0000 (16:06 +0930)
commit630993ec93fed0f2da1c4511b865cc69f5f0e835
tree92955153c33b0544e02844994f57ab702a121e9b
parenta39d2e820dd949f934411dbc724d9afb5f4ace03
Consistency check for merge sections

We can't allow sections to be merged and sized by the ELF linker
backend and then later be output by the generic linker backend.  The
generic linker backend doesn't understand merge sections.

PR ld/19013
* elflink.c (_bfd_elf_merge_sections): Only merge input bfds that
will be handled by elf_link_input_bfd.  Rename abfd param to obfd.
bfd/ChangeLog
bfd/elflink.c