Mon Jan 24 12:38:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+ * linker.c (generic_link_check_achive_element): Set SEC_ALLOC flag
+ for a created common section.
+ (_bfd_generic_link_add_one_symbol): Likewise.
+
+ * elfcode.h (swap_out_syms): Use elf_section_from_bfd_section to
+ get the index of a common section, rather than always using
+ SHN_COMMON (MIPS has multiple common sections).
+
* elf32-hppa.c (hppa_elf_gen_reloc_type): Typo (== for =).
* bfd/aoutx.h (aout_link_input_section_std,
else
h->u.c.section = bfd_make_section_old_way (symbfd,
p->section->name);
+ h->u.c.section->flags = SEC_ALLOC;
}
else
{
h->type = bfd_link_hash_common;
h->u.c.size = value;
if (section == &bfd_com_section)
- h->u.c.section = bfd_make_section_old_way (abfd, "COMMON");
+ {
+ h->u.c.section = bfd_make_section_old_way (abfd, "COMMON");
+ h->u.c.section->flags = SEC_ALLOC;
+ }
else if (section->owner != abfd)
- h->u.c.section = bfd_make_section_old_way (abfd, section->name);
+ {
+ h->u.c.section = bfd_make_section_old_way (abfd, section->name);
+ h->u.c.section->flags = SEC_ALLOC;
+ }
else
h->u.c.section = section;
break;