summaryrefslogtreecommitdiff
path: root/bfd/elfxx-sparc.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elfxx-sparc.h')
-rw-r--r--bfd/elfxx-sparc.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/elfxx-sparc.h b/bfd/elfxx-sparc.h
index 2be037b1d0..6f24ecd24b 100644
--- a/bfd/elfxx-sparc.h
+++ b/bfd/elfxx-sparc.h
@@ -1,5 +1,5 @@
/* SPARC ELF specific backend routines.
- Copyright 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
+ Copyright 2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -54,7 +54,8 @@ struct _bfd_sparc_elf_link_hash_table
asection *sdynbss;
asection *srelbss;
- union {
+ union
+ {
bfd_signed_vma refcount;
bfd_vma offset;
} tls_ldm_got;
@@ -93,7 +94,8 @@ struct _bfd_sparc_elf_link_hash_table
/* Get the SPARC ELF linker hash table from a link_info structure. */
#define _bfd_sparc_elf_hash_table(p) \
- ((struct _bfd_sparc_elf_link_hash_table *) ((p)->hash))
+ (elf_hash_table_id ((struct elf_link_hash_table *) ((p)->hash)) \
+ == SPARC_ELF_DATA ? ((struct _bfd_sparc_elf_link_hash_table *) ((p)->hash)) : NULL)
extern reloc_howto_type *_bfd_sparc_elf_reloc_type_lookup
(bfd *, bfd_reloc_code_real_type);