This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
fix pecoff partial links
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Thu, 12 Jul 2007 13:15:30 +0100
- Subject: fix pecoff partial links
This patch fixes a problem with partial links on pe-coff. We shouldn't be
merging .gcc_except_table and .eh_frame so early.
tested in i686-mingw32, ok?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
2007-07-12 Nathan Sidwell <nathan@codesourcery.com>
* scripttempl/pe.sc: Don't include .gcc_except_table and
.eh_frame on partial links.
Index: ld/scripttempl/pe.sc
===================================================================
--- ld/scripttempl/pe.sc (revision 176277)
+++ ld/scripttempl/pe.sc (working copy)
@@ -73,7 +73,7 @@ SECTIONS
/* ??? Why is .gcc_exc here? */
${RELOCATING+ *(.gcc_exc)}
${RELOCATING+PROVIDE (etext = .);}
- *(.gcc_except_table)
+ ${RELOCATING+ *(.gcc_except_table)}
}
/* The Cygwin32 library uses a section to avoid copying certain data
@@ -97,7 +97,7 @@ SECTIONS
{
*(.rdata)
${R_RDATA}
- *(.eh_frame)
+ ${RELOCATING+ *(.eh_frame)}
${RELOCATING+___RUNTIME_PSEUDO_RELOC_LIST__ = .;}
${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST__ = .;}
*(.rdata_runtime_pseudo_reloc)