Don't access elf tdata in dwarf.c without first checking for an ELF bfd
authorAlan Modra <amodra@gmail.com>
Wed, 10 Dec 2014 03:36:42 +0000 (14:06 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 10 Dec 2014 05:00:54 +0000 (15:30 +1030)
commitfa15f18deaf6f48e0b415ad3e8864de0b1cf6a39
treea7dd56d73cad3ba8b65517a83d77d054a2fc99dc
parent4673aa7850ee7a8a806a9e61f531c8dd88f70325
Don't access elf tdata in dwarf.c without first checking for an ELF bfd

_bfd_dwarf2_find_nearest_line may be called on a COFF bfd.

* dwarf2.c (read_address): Check bfd_target_elf_flavour before
calling get_elf_backend_data.
(_bfd_dwarf2_find_nearest_line): Fix parens.
bfd/ChangeLog
bfd/dwarf2.c