From 5f294ed6805ce3931f9c04cfedff38e20010c819 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 12 Jul 2007 12:57:02 +0000 Subject: * scripttempl/pe.sc: Don't include .gcc_except_table and .eh_frame on partial links. * scripttempl/pep.sc: Likewise. --- ld/scripttempl/pe.sc | 4 ++-- ld/scripttempl/pep.sc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ld/scripttempl') diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index c9931b5..c9eb16f 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -71,7 +71,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 @@ -95,7 +95,7 @@ SECTIONS { *(.rdata) ${R_RDATA} - *(.eh_frame) + ${RELOCATING+ *(.eh_frame)} ${RELOCATING+___RUNTIME_PSEUDO_RELOC_LIST__ = .;} ${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST__ = .;} *(.rdata_runtime_pseudo_reloc) diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc index edad5ee..7237832 100644 --- a/ld/scripttempl/pep.sc +++ b/ld/scripttempl/pep.sc @@ -71,7 +71,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 @@ -95,7 +95,7 @@ SECTIONS { *(.rdata) ${R_RDATA} - *(.eh_frame) + ${RELOCATING+ *(.eh_frame)} ${RELOCATING+___RUNTIME_PSEUDO_RELOC_LIST__ = .;} ${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST__ = .;} *(.rdata_runtime_pseudo_reloc) -- cgit v1.1