aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-02-08 22:57:48 +0000
committerIan Lance Taylor <ian@airs.com>1995-02-08 22:57:48 +0000
commit6581a70a9a23f83b6ab24f7662e16cabc6dbbd11 (patch)
tree0a5ca0f9d1feb4e17dac165945bcd3cdeee8b787 /bfd/elfcode.h
parent3565dee4ebce94924bbf53673db8d66ee256866b (diff)
downloadgdb-6581a70a9a23f83b6ab24f7662e16cabc6dbbd11.zip
gdb-6581a70a9a23f83b6ab24f7662e16cabc6dbbd11.tar.gz
gdb-6581a70a9a23f83b6ab24f7662e16cabc6dbbd11.tar.bz2
* 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.
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 e96f088..36e2243 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: