* aoutx.h (translate_from_native_sym_flags): Don't create
SEC_CONSTRUCTOR sections. * ecoff.c (ecoff_set_symbol_info): Likewise.
This commit is contained in:
parent
6b725f83fa
commit
b7d1158a90
|
@ -1,5 +1,9 @@
|
||||||
Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com>
|
Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* aoutx.h (translate_from_native_sym_flags): Don't create
|
||||||
|
SEC_CONSTRUCTOR sections.
|
||||||
|
* ecoff.c (ecoff_set_symbol_info): Likewise.
|
||||||
|
|
||||||
* elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
|
* elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
|
||||||
From Don Bowman <bowman@waterloo.hp.com>.
|
From Don Bowman <bowman@waterloo.hp.com>.
|
||||||
|
|
||||||
|
|
|
@ -1414,6 +1414,10 @@ translate_from_native_sym_flags (abfd, cache_ptr)
|
||||||
case N_SETD: case N_SETD | N_EXT:
|
case N_SETD: case N_SETD | N_EXT:
|
||||||
case N_SETB: case N_SETB | N_EXT:
|
case N_SETB: case N_SETB | N_EXT:
|
||||||
{
|
{
|
||||||
|
/* This code is no longer needed. It used to be used to make
|
||||||
|
the linker handle set symbols, but they are now handled in
|
||||||
|
the add_symbols routine instead. */
|
||||||
|
#if 0
|
||||||
asection *section;
|
asection *section;
|
||||||
arelent_chain *reloc;
|
arelent_chain *reloc;
|
||||||
asection *into_section;
|
asection *into_section;
|
||||||
|
@ -1490,6 +1494,8 @@ translate_from_native_sym_flags (abfd, cache_ptr)
|
||||||
|
|
||||||
reloc->relent.howto = CTOR_TABLE_RELOC_HOWTO(abfd);
|
reloc->relent.howto = CTOR_TABLE_RELOC_HOWTO(abfd);
|
||||||
|
|
||||||
|
#endif /* 0 */
|
||||||
|
|
||||||
cache_ptr->symbol.flags |= BSF_CONSTRUCTOR;
|
cache_ptr->symbol.flags |= BSF_CONSTRUCTOR;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -2351,7 +2357,8 @@ NAME(aout,squirt_out_relocs) (abfd, section)
|
||||||
unsigned int count = section->reloc_count;
|
unsigned int count = section->reloc_count;
|
||||||
size_t natsize;
|
size_t natsize;
|
||||||
|
|
||||||
if (count == 0) return true;
|
if (count == 0 || section->orelocation == NULL)
|
||||||
|
return true;
|
||||||
|
|
||||||
each_size = obj_reloc_entry_size (abfd);
|
each_size = obj_reloc_entry_size (abfd);
|
||||||
natsize = each_size * count;
|
natsize = each_size * count;
|
||||||
|
|
Loading…
Reference in New Issue