aboutsummaryrefslogtreecommitdiff
path: root/binutils/dllwrap.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-07-15 07:58:47 +0000
committerKai Tietz <kai.tietz@onevision.com>2010-07-15 07:58:47 +0000
commitf14ead0d1546cd5083e35b13d06d9c477ff82492 (patch)
tree93cc22e256fbc88ba606bf1cc6e47ac5ef75cd2a /binutils/dllwrap.c
parent25d17eb4ccec7e63aa8d5fbe03202df8c82e1619 (diff)
downloadgdb-f14ead0d1546cd5083e35b13d06d9c477ff82492.zip
gdb-f14ead0d1546cd5083e35b13d06d9c477ff82492.tar.gz
gdb-f14ead0d1546cd5083e35b13d06d9c477ff82492.tar.bz2
2010-07-15 Kai Tietz <kai.tietz@onevision.com>
* dllwrap.c (main): Make sure is_leading_underscore gets initialized with correct default.
Diffstat (limited to 'binutils/dllwrap.c')
-rw-r--r--binutils/dllwrap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/dllwrap.c b/binutils/dllwrap.c
index c807f49..4e48f3e 100644
--- a/binutils/dllwrap.c
+++ b/binutils/dllwrap.c
@@ -855,6 +855,9 @@ Creating one, but that may not be what you want"));
else
which_cpu = UNKNOWN_CPU;
+ if (is_leading_underscore == -1)
+ is_leading_underscore = (which_cpu != X64_CPU && which_cpu != ARM_CPU);
+
/* Re-create the command lines as a string, taking care to quote stuff. */
dlltool_cmdline = dyn_string_new (cmdline_len);
if (verbose)