X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Felf-bfd.h;h=93e8e6d3dfe7e2aa0e29c60e3cc60dd08a41dee0;hb=8ea2e4bd701102e0d30274c3c37f1ff60ccb3f1d;hp=a048e6f5f4393fd258f8292c180735c0fd6ac3fc;hpb=1ae8b3d2a04d1064a403ce6adf997831e1a55300;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index a048e6f5f4..93e8e6d3df 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -273,6 +273,10 @@ struct elf_link_hash_table /* Get the ELF linker hash table from a link_info structure. */ #define elf_hash_table(p) ((struct elf_link_hash_table *) ((p)->hash)) + +/* Returns true if the hash table is a struct elf_link_hash_table. */ +#define is_elf_hash_table(p) \ + ((p)->hash->type == bfd_link_elf_hash_table) /* Constant information held for an ELF backend. */