* 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:
parent
3565dee4eb
commit
6581a70a9a
2 changed files with 19 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue