* Fix NOCROSSREFS 3 for MIPS Linux
@ 2007-09-19 17:08 Daniel Jacobowitz
0 siblings, 0 replies; only message in thread
From: Daniel Jacobowitz @ 2007-09-19 17:08 UTC (permalink / raw)
To: binutils
This obvious patch prevents ld from crashing when .got is non-empty
but DISCARD'd. Not a very useful thing to do for real binaries, but
used in ld testing. Checked in.
--
Daniel Jacobowitz
CodeSourcery
2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make sure .got
will be output.
Index: elfxx-mips.c
===================================================================
--- elfxx-mips.c (revision 181978)
+++ elfxx-mips.c (working copy)
@@ -8917,7 +8917,8 @@ _bfd_mips_elf_finish_dynamic_sections (b
memset (b - dyn_skipped, 0, dyn_skipped);
}
- if (sgot != NULL && sgot->size > 0)
+ if (sgot != NULL && sgot->size > 0
+ && !bfd_is_abs_section (sgot->output_section))
{
if (htab->is_vxworks)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-19 16:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-19 17:08 Fix NOCROSSREFS 3 for MIPS Linux Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).