mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 17:31:13 +08:00
* 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.
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user