mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 17:31:13 +08:00
* elfcode.h (elf_link_add_object_symbols): Use *sym_hash instead
of h if we might not be doing an ELF link.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user