* symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,

coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c:
	Change from using bfd target name to using the flavour.
This commit is contained in:
Jim Kingdon 1993-10-31 18:54:28 +00:00
parent 47f45d6636
commit 0eed42deee
9 changed files with 27 additions and 45 deletions

View file

@ -796,11 +796,15 @@ find_sym_fns (objfile)
struct objfile *objfile;
{
struct sym_fns *sf;
enum bfd_flavour our_flavour = bfd_get_flavour (objfile -> obfd);
/* Special kludge for RS/6000. See xcoffread.c. */
if (STREQ (bfd_get_target (objfile -> obfd), "aixcoff-rs6000"))
our_flavour = (enum bfd_flavour)-1;
for (sf = symtab_fns; sf != NULL; sf = sf -> next)
{
if (strncmp (bfd_get_target (objfile -> obfd),
sf -> sym_name, sf -> sym_namelen) == 0)
if (our_flavour == sf -> sym_flavour)
{
objfile -> sf = sf;
return;