forked from Imagelibrary/binutils-gdb
* bfd-in.h (bfd_family_coff): Define.
* bfd-in2.h: Regenerate. * coffgen.c (coff_count_linenumbers, coff_symbol_from, coff_find_nearest_line): Check COFFness using bfd_family_coff() instead of bfd_target_coff_flavour. * cofflink.c (_bfd_coff_final_link): Likewise. * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to exclude XCOFF files. * reloc.c (bfd_perform_relocation, bfd_install_relocation): Likewise. * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour. * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour. * xcofflink.c (XCOFF_XVECP): Delete. (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol, bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc, bfd_xcoff_record_link_assignment, bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with check for bfd_target_xcoff_flavour.
This commit is contained in:
@@ -525,7 +525,7 @@ coff_count_linenumbers (abfd)
|
||||
{
|
||||
asymbol *q_maybe = *p;
|
||||
|
||||
if (bfd_asymbol_flavour (q_maybe) == bfd_target_coff_flavour)
|
||||
if (bfd_family_coff (bfd_asymbol_bfd (q_maybe)))
|
||||
{
|
||||
coff_symbol_type *q = coffsymbol (q_maybe);
|
||||
|
||||
@@ -564,7 +564,7 @@ coff_symbol_from (ignore_abfd, symbol)
|
||||
bfd *ignore_abfd ATTRIBUTE_UNUSED;
|
||||
asymbol *symbol;
|
||||
{
|
||||
if (bfd_asymbol_flavour (symbol) != bfd_target_coff_flavour)
|
||||
if (!bfd_family_coff (bfd_asymbol_bfd (symbol)))
|
||||
return (coff_symbol_type *) NULL;
|
||||
|
||||
if (bfd_asymbol_bfd (symbol)->tdata.coff_obj_data == (coff_data_type *) NULL)
|
||||
@@ -2200,7 +2200,7 @@ coff_find_nearest_line (abfd, section, symbols, offset, filename_ptr,
|
||||
*line_ptr = 0;
|
||||
|
||||
/* Don't try and find line numbers in a non coff file */
|
||||
if (abfd->xvec->flavour != bfd_target_coff_flavour)
|
||||
if (!bfd_family_coff (abfd))
|
||||
return false;
|
||||
|
||||
if (cof == NULL)
|
||||
|
||||
Reference in New Issue
Block a user