* elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
authorAlan Modra <amodra@gmail.com>
Mon, 27 Feb 2012 06:48:10 +0000 (06:48 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 27 Feb 2012 06:48:10 +0000 (06:48 +0000)
commit3d301fdc610585d4dd037d9f4816f732aa4417d7
tree5fcec732b1fcf30f3ba60d2b408a705aa5b4792f
parent35a358074fc5d36cc1df4a33660ae1edc735c330
* elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
before calling elf specific function.
(sh_elf_osec_readonly_p): Test for error return from above.
bfd/ChangeLog
bfd/elf32-sh.c