]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elfcode.h (elf_link_add_object_symbols): Use *sym_hash instead
authorIan Lance Taylor <ian@airs.com>
Sat, 28 Jan 1995 05:17:04 +0000 (05:17 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 28 Jan 1995 05:17:04 +0000 (05:17 +0000)
of h if we might not be doing an ELF link.

bfd/ChangeLog
bfd/elfcode.h

index 16bf83875cdcfa77d077638bef6597f21dc37a7d..e1dd03c57721ba0b8861a61306e8323a38be5e69 100644 (file)
@@ -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
index 505ca57e094549c4c4911c1c5c273d1d9a9dca36..a6c547816df3c8cb05007fb8ed0e5b38bcb605db 100644 (file)
@@ -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)
        {