[PATCH] Undo part of previous elf32-vax.c change
Jason R Thorpe
thorpej@wasabisystems.com
Sat Sep 28 19:16:00 GMT 2002
This part (allowing .got sections to be garbage-collected) of the previous
change to elf32-vax.c caused failures in the libstdc++-v3 testsuite, and so
I am backing out just that part ... a cursory inspection shows that other
back-ends have this same behavior.
Committed to trunk.
* elf32-vax.c (elf_vax_size_dynamic_section): Don't strip
.got sections.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>
-------------- next part --------------
Index: elf32-vax.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-vax.c,v
retrieving revision 1.7
diff -c -r1.7 elf32-vax.c
*** elf32-vax.c 27 Sep 2002 22:28:17 -0000 1.7
--- elf32-vax.c 28 Sep 2002 23:08:17 -0000
***************
*** 1270,1285 ****
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
{
/* It's not one of our sections, so don't allocate space. */
continue;
--- 1270,1276 ----
s->reloc_count = 0;
}
}
! else if (strncmp (name, ".got", 4) != 0)
{
/* It's not one of our sections, so don't allocate space. */
continue;
More information about the Binutils
mailing list