* elf32-vax.c (elf_vax_size_dynamic_section): Don't strip
authorJason Thorpe <thorpej@netbsd.org>
Sat, 28 Sep 2002 23:15:50 +0000 (23:15 +0000)
committerJason Thorpe <thorpej@netbsd.org>
Sat, 28 Sep 2002 23:15:50 +0000 (23:15 +0000)
.got sections.

bfd/ChangeLog
bfd/elf32-vax.c

index ed2e0162613edcc204417200192c3ee2c7763103..0a8d1c40c8b8000b2364bbdd4362f8568f540099 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-28  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip
+       .got sections.
+
 2002-09-28  Alan Modra  <amodra@bigpond.net.au>
 
        * elf.c (map_sections_to_segments): Correct test for start of
index 64b2c40694d43a5320a942ac2eb57c5871d78cc1..0d42b728f4093ed6d55bd3c1e3a7e11343d1039b 100644 (file)
@@ -1270,16 +1270,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;