From: Jeremy Drake Date: Wed, 17 Nov 2021 16:24:53 +0000 (+0000) Subject: Set the default DLL chracteristics to 0 for Cygwin based targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef6379e16dd164487e10a06e19bcb006d5c3788b;p=binutils-gdb.git Set the default DLL chracteristics to 0 for Cygwin based targets. * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for Cygwin targets. * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index d68b8203c0b..cd732301887 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2021-11-17 Jeremy Drake + + * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for + Cygwin targets. + * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise. + 2021-11-17 Nick Clifton PR 28452 diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index c5aed5f126a..728ad046917 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -5,6 +5,16 @@ if [ -z "$MACHINE" ]; then else OUTPUT_ARCH=${ARCH}:${MACHINE} fi + +case ${target} in + *-*-cygwin*) + cygwin_behavior=1 + ;; + *) + cygwin_behavior=0; + ;; +esac + rm -f e${EMULATION_NAME}.c (echo;echo;echo;echo;echo)>e${EMULATION_NAME}.c # there, now line numbers match ;-) fragment <