From 6581a70a9a23f83b6ab24f7662e16cabc6dbbd11 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 8 Feb 1995 22:57:48 +0000 Subject: [PATCH] * 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. --- bfd/ChangeLog | 17 +++++++++++++++++ bfd/elfcode.h | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 76ccd0fb9f..7775edb4a6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,20 @@ +Wed Feb 8 17:26:00 1995 Ian Lance Taylor + + * 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 * elfcode.h (elf_sort_hdrs): Put SHT_NOBITS sections after !SHT_NOBITS. diff --git a/bfd/elfcode.h b/bfd/elfcode.h index e96f088fb3..36e2243dc7 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -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: