aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-05-21 09:23:07 +0000
committerNick Clifton <nickc@redhat.com>2003-05-21 09:23:07 +0000
commit385a4c14f3a541ff06a8312104b97d21e272bfcd (patch)
treef05abf83999a9cf45b08636eac460b692dd29d8b
parentb9b171fb1af5a6884dd4a6ea09ebdf4f9c3b10f2 (diff)
downloadgdb-385a4c14f3a541ff06a8312104b97d21e272bfcd.zip
gdb-385a4c14f3a541ff06a8312104b97d21e272bfcd.tar.gz
gdb-385a4c14f3a541ff06a8312104b97d21e272bfcd.tar.bz2
USe is_elf_hash_table() to check for the presence of an elf_link_hash_table
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7e4402b..00a20cc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf.c b/bfd/elf.c
index 5e72eb0..66383e7 100644
--- 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;
}