aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 505ca57..a6c5478 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -4362,8 +4362,8 @@ elf_link_add_object_symbols (abfd, info)
/* Get the alignment of a common symbol. */
if (sym.st_shndx == SHN_COMMON
- && h->root.type == bfd_link_hash_common)
- h->root.u.c.alignment_power = bfd_log2 (sym.st_value);
+ && (*sym_hash)->root.type == bfd_link_hash_common)
+ (*sym_hash)->root.u.c.alignment_power = bfd_log2 (sym.st_value);
if (info->hash->creator->flavour == bfd_target_elf_flavour)
{