2009-02-09 Kai Tietz <kai.tietz@onevision.com>
authorKai Tietz <kai.tietz@onevision.com>
Mon, 9 Feb 2009 15:40:24 +0000 (15:40 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Mon, 9 Feb 2009 15:40:24 +0000 (15:40 +0000)
* windres.c (set_endianess): Copy name without leading '-'.

binutils/ChangeLog
binutils/windres.c

index c9318c22f7dc306d756c70f0655efcea2c9a1dc9..18a0e99181c2f477d08fa2643cd660b8cccbf48a 100644 (file)
@@ -1,3 +1,7 @@
+2009-02-09  Kai Tietz  <kai.tietz@onevision.com>
+
+       * windres.c (set_endianess): Copy name without leading '-'.
+
 2009-02-09  Tristan Gingold  <gingold@adacore.com>
 
        * NEWS: Mention feature match between objdump and readelf for dumping
index ece32bad6bf6b2b93acf259c04be14f843833351..16100ed9ddadfdba0d0398291c37ff9ab781f00b 100644 (file)
@@ -1102,7 +1102,7 @@ set_endianess (bfd *abfd, const char *target)
 
        if (hyp != NULL)
          {
-           tname = hyp + 1;
+           tname = ++hyp;
 
            /* Make sure we dectect architecture names
               for triplets like "pe-arm-wince-little".  */