aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2009-02-27 19:01:57 +0000
committerDave Korn <dave.korn@artimi.com>2009-02-27 19:01:57 +0000
commit5b9c60272e18b69b70862cd9ca26e41e5bc8d9c8 (patch)
tree06f262b11b6b2cb9ad0bb0a9c311168065099eca /ld/emultempl
parenta2f63f5efafc75e93d882fa2bfcbe8489aa997d3 (diff)
downloadgdb-5b9c60272e18b69b70862cd9ca26e41e5bc8d9c8.zip
gdb-5b9c60272e18b69b70862cd9ca26e41e5bc8d9c8.tar.gz
gdb-5b9c60272e18b69b70862cd9ca26e41e5bc8d9c8.tar.bz2
ld/ChangeLog
* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set default state of auto-import flag based on $target. ld/testsuite/ChangeLog * ld-pe/pe.exp: Disable auto-import when linking on Cygwin.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/pe.em16
1 files changed, 15 insertions, 1 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index 5478435..46c4057 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -145,7 +145,21 @@ gld_${EMULATION_NAME}_before_parse (void)
#ifdef DLL_SUPPORT
config.dynamic_link = TRUE;
config.has_shared = 1;
- link_info.pei386_auto_import = -1;
+EOF
+
+# Cygwin no longer wants these noisy warnings. Other PE
+# targets might like to consider adding themselves here.
+case ${target} in
+ *-*-cygwin*)
+ default_auto_import=1
+ ;;
+ *)
+ default_auto_import=-1
+ ;;
+esac
+
+fragment <<EOF
+ link_info.pei386_auto_import = ${default_auto_import};
link_info.pei386_runtime_pseudo_reloc = 1; /* Use by default version 1. */
#if (PE_DEF_SUBSYSTEM == 9) || (PE_DEF_SUBSYSTEM == 2)