]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
USe is_elf_hash_table() to check for the presence of an elf_link_hash_table
authorNick Clifton <nickc@redhat.com>
Wed, 21 May 2003 09:23:07 +0000 (09:23 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 21 May 2003 09:23:07 +0000 (09:23 +0000)
bfd/ChangeLog
bfd/elf.c

index 7e4402be3de86ef3be890e969c4a6e7f9da2ecc6..00a20ccebc460c3fdd5cda62a67b73d47fcc13f3 100644 (file)
@@ -1,3 +1,9 @@
+2003-05-21  Nick Clifton  <nickc@redhat.com>
+
+       * elf.c (bfd_elf_get_needed_list): Use is_elf_hash_table to check
+       the type of the has table in the bfd_link_info structure.
+       (bfd_elf_get_runpath_list): Likewise.
+
 2003-05-19  Roland McGrath  <roland@redhat.com>
 
        * elf.c (bfd_elf_bfd_from_remote_memory): New function.
index 5e72eb05bf55b1001185187a02df100120330799..66383e7c0d4bdaabcfc16023ed24e961e2e275fb 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1616,7 +1616,7 @@ bfd_elf_get_needed_list (abfd, info)
      bfd *abfd ATTRIBUTE_UNUSED;
      struct bfd_link_info *info;
 {
-  if (info->hash->creator->flavour != bfd_target_elf_flavour)
+  if (! is_elf_hash_table (info))
     return NULL;
   return elf_hash_table (info)->needed;
 }
@@ -1629,7 +1629,7 @@ bfd_elf_get_runpath_list (abfd, info)
      bfd *abfd ATTRIBUTE_UNUSED;
      struct bfd_link_info *info;
 {
-  if (info->hash->creator->flavour != bfd_target_elf_flavour)
+  if (! is_elf_hash_table (info))
     return NULL;
   return elf_hash_table (info)->runpath;
 }