2010-07-15 Kai Tietz <kai.tietz@onevision.com>
authorKai Tietz <kai.tietz@onevision.com>
Thu, 15 Jul 2010 07:58:47 +0000 (07:58 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Thu, 15 Jul 2010 07:58:47 +0000 (07:58 +0000)
        * dllwrap.c (main): Make sure is_leading_underscore
        gets initialized with correct default.

binutils/ChangeLog
binutils/dllwrap.c

index ab10e486c2b7f7de6aa84c23d8a66356a8820048..873d9c9a9a933231f5a526427fe95f36e39599aa 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-15  Kai Tietz <kai.tietz@onevision.com>
+
+       * dllwrap.c (main): Make sure is_leading_underscore
+       gets initialized with correct default.
+
 2010-07-05  Alan Modra  <amodra@gmail.com>
 
        * readelf.c (uncompress_section_contents): Avoid gcc-4.6 warning.
index c807f49c277fe023c5e0b3e65ce88d3209e935ff..4e48f3e39dc4a1bad0ad4c8bcaece27c7d4070f6 100644 (file)
@@ -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)