* linker.c (generic_link_check_archive_element): Allocate common
authorIan Lance Taylor <ian@airs.com>
Wed, 8 Feb 1995 22:57:48 +0000 (22:57 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 8 Feb 1995 22:57:48 +0000 (22:57 +0000)
symbol information structure.  Don't bother to check for common
symbol size overflow.
(_bfd_generic_link_add_one_symbol): Likewise.
* aoutx.h (aout_link_check_ar_symbols): Likewise.
* linker.c (generic_link_check_archive_element): Adjust references
to common symbol information for new structure.
(_bfd_generic_link_add_one_symbol): Likewise.
* aoutx.h (aout_link_check_ar_symbols): Likewise.
(aout_link_add_symbols): Likewise.
* ecoff.c (ecoff_link_add_externals): Likewise.
* elfcode.h (elf_link_add_object_symbols): Likewise.
(elf_link_output_extsym): Likewise.
* sunos.c (sunos_add_one_symbol): Likewise.

bfd/ChangeLog
bfd/elfcode.h

index 76ccd0fb9f794b9ec70e5ce2cc65c8764c95d020..7775edb4a67dedfd069c786844d720e8f22903a8 100644 (file)
@@ -1,3 +1,20 @@
+Wed Feb  8 17:26:00 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * linker.c (generic_link_check_archive_element): Allocate common
+       symbol information structure.  Don't bother to check for common
+       symbol size overflow.
+       (_bfd_generic_link_add_one_symbol): Likewise.
+       * aoutx.h (aout_link_check_ar_symbols): Likewise.
+       * linker.c (generic_link_check_archive_element): Adjust references
+       to common symbol information for new structure.
+       (_bfd_generic_link_add_one_symbol): Likewise.
+       * aoutx.h (aout_link_check_ar_symbols): Likewise.
+       (aout_link_add_symbols): Likewise.
+       * ecoff.c (ecoff_link_add_externals): Likewise.
+       * elfcode.h (elf_link_add_object_symbols): Likewise.
+       (elf_link_output_extsym): Likewise.
+       * sunos.c (sunos_add_one_symbol): Likewise.
+
 Wed Feb  8 09:53:42 1995  Doug Evans  <dje@canuck.cygnus.com>
 
        * elfcode.h (elf_sort_hdrs): Put SHT_NOBITS sections after !SHT_NOBITS.
index e96f088fb36c7991c3421fe6b63fcf248a8bfef8..36e2243dc7ad6daf5d32163e3de3400c7d53718f 100644 (file)
@@ -4470,7 +4470,7 @@ elf_link_add_object_symbols (abfd, info)
       /* Get the alignment of a common symbol.  */
       if (sym.st_shndx == SHN_COMMON
          && (*sym_hash)->root.type == bfd_link_hash_common)
-       (*sym_hash)->root.u.c.alignment_power = bfd_log2 (sym.st_value);
+       (*sym_hash)->root.u.c.p->alignment_power = bfd_log2 (sym.st_value);
 
       if (info->hash->creator->flavour == bfd_target_elf_flavour)
        {
@@ -6178,7 +6178,7 @@ elf_link_output_extsym (h, data)
     case bfd_link_hash_common:
       input_sec = bfd_com_section_ptr;
       sym.st_shndx = SHN_COMMON;
-      sym.st_value = 1 << h->root.u.c.alignment_power;
+      sym.st_value = 1 << h->root.u.c.p->alignment_power;
       break;
 
     case bfd_link_hash_indirect: