From: Jason Thorpe Date: Sat, 28 Sep 2002 23:15:50 +0000 (+0000) Subject: * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9d1a40ca466f889d2bc150cca8d4dc4f0f3d848a;p=pf3gnuchains%2Fpf3gnuchains3x.git * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip .got sections. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ed2e016261..0a8d1c40c8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-09-28 Jason Thorpe + + * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip + .got sections. + 2002-09-28 Alan Modra * elf.c (map_sections_to_segments): Correct test for start of diff --git a/bfd/elf32-vax.c b/bfd/elf32-vax.c index 64b2c40694..0d42b728f4 100644 --- a/bfd/elf32-vax.c +++ b/bfd/elf32-vax.c @@ -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;