From 155d9cc48aa72784409f93ba5362024fe365882b Mon Sep 17 00:00:00 2001 From: Geoffrey Noer Date: Thu, 19 Mar 1998 23:04:54 +0000 Subject: [PATCH] Thu Mar 19 14:54:45 1998 Geoffrey Noer * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy section to avoid copying certain data on fork. The linker used to include this between __data_start__ and __data_end__, but that breaks building the cygwin32 dll. The fix is to rename the section ".data_cygwin_nocopy" and explictly include it after __data_end__. --- ld/ChangeLog | 9 ++++++ ld/scripttempl/pe.sc | 69 ++++++++++++++++++++++---------------------- 2 files changed, 44 insertions(+), 34 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 9f5ec1488e6..2459b4b4f3e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +Thu Mar 19 14:54:45 1998 Geoffrey Noer + + * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy + section to avoid copying certain data on fork. The linker used to + include this between __data_start__ and __data_end__, but that + breaks building the cygwin32 dll. The fix is to rename the + section ".data_cygwin_nocopy" and explictly include it after + __data_end__. + Wed Mar 18 09:42:24 1998 Nick Clifton * configure.tgt (targ_extra_emuls): Add thumb-pe target. diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index 6a41aaefe89..c516abd8482 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -1,7 +1,13 @@ # Linker script for PE. +if test -z "${RELOCATEABLE_OUTPUT_FORMAT}"; then + RELOCATEABLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} +fi + cat <