aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-01-28 05:17:04 +0000
committerIan Lance Taylor <ian@airs.com>1995-01-28 05:17:04 +0000
commitcd9dba7b3749c010093e94d1a67018ccbc2811da (patch)
tree074363e18176858c1dfb2ae4238196436319c471
parentf22661eefd6af1d41e7f3459f412c9030e00d084 (diff)
downloadgdb-cd9dba7b3749c010093e94d1a67018ccbc2811da.zip
gdb-cd9dba7b3749c010093e94d1a67018ccbc2811da.tar.gz
gdb-cd9dba7b3749c010093e94d1a67018ccbc2811da.tar.bz2
* elfcode.h (elf_link_add_object_symbols): Use *sym_hash instead
of h if we might not be doing an ELF link.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfcode.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 16bf838..e1dd03c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Sat Jan 28 00:16:01 1995 Ian Lance Taylor <ian@cygnus.com>
+
+ * elfcode.h (elf_link_add_object_symbols): Use *sym_hash instead
+ of h if we might not be doing an ELF link.
+
Fri Jan 27 16:13:42 1995 Ian Lance Taylor <ian@cygnus.com>
* elf32-mips.c (mips_elf_final_link): If the size of an input
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)
{