Pick up the following change from binutils-current:

2002-09-28  Jason Thorpe  <thorpej@wasabisystems.com>

        * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip
        .got sections.
This commit is contained in:
thorpej 2002-09-28 23:19:01 +00:00
parent f075a6c2cc
commit e870e0c546
1 changed files with 1 additions and 10 deletions

View File

@ -1292,16 +1292,7 @@ elf_vax_size_dynamic_sections (output_bfd, info)
s->reloc_count = 0;
}
}
else if (strncmp (name, ".got", 4) == 0)
{
if (s->_raw_size == 0)
{
/* Strip this section if we don't need it; see the
comment below. */
strip = true;
}
}
else
else if (strncmp (name, ".got", 4) != 0)
{
/* It's not one of our sections, so don't allocate space. */
continue;