| 
     
      
      
      From: <ac...@us...> - 2010-04-06 19:24:59
      
     
   | 
Revision: 32
          http://clibinutils.svn.sourceforge.net/clibinutils/?rev=32&view=rev
Author:   aco
Date:     2010-04-06 19:24:53 +0000 (Tue, 06 Apr 2010)
Log Message:
-----------
review as and ld options
Modified Paths:
--------------
    mono-based-binutils/trunk/ChangeLog
    mono-based-binutils/trunk/scripts/as.in
    mono-based-binutils/trunk/scripts/ld.in
    mono-based-binutils/trunk/tools/gcc4cli/ld/Driver.cs
Modified: mono-based-binutils/trunk/ChangeLog
===================================================================
--- mono-based-binutils/trunk/ChangeLog	2010-04-06 19:18:19 UTC (rev 31)
+++ mono-based-binutils/trunk/ChangeLog	2010-04-06 19:24:53 UTC (rev 32)
@@ -11,6 +11,9 @@
 	* Makefile.am: Likewise.
 	* doc/Makefile.am: Likewise.
 	* tools/Makefile.am: Likewise.
+	* tools/gcc4cli/ld/Driver.cs: ignore option -lm.
+	* scripts/ld.in: pass -lm option to ld.exe.
+	* scripts/as.in: add option to generate debug information.
 
 2010-03-24  Thierry LAFAGE  <thi...@in...>
 
Modified: mono-based-binutils/trunk/scripts/as.in
===================================================================
--- mono-based-binutils/trunk/scripts/as.in	2010-04-06 19:18:19 UTC (rev 31)
+++ mono-based-binutils/trunk/scripts/as.in	2010-04-06 19:24:53 UTC (rev 32)
@@ -22,6 +22,10 @@
       --fatal-warnings)
           shift
           ;;
+      -g)
+          PARAM="$PARAM -debug";
+          shift
+          ;;
       -o)
           PARAM="$PARAM -output:$2";
           shift
Modified: mono-based-binutils/trunk/scripts/ld.in
===================================================================
--- mono-based-binutils/trunk/scripts/ld.in	2010-04-06 19:18:19 UTC (rev 31)
+++ mono-based-binutils/trunk/scripts/ld.in	2010-04-06 19:24:53 UTC (rev 32)
@@ -13,9 +13,6 @@
           VERBOSE=true
           shift
           ;;
-      -lm)
-          shift
-          ;;
       *)
           PARAM="$PARAM $1";
           shift
Modified: mono-based-binutils/trunk/tools/gcc4cli/ld/Driver.cs
===================================================================
--- mono-based-binutils/trunk/tools/gcc4cli/ld/Driver.cs	2010-04-06 19:18:19 UTC (rev 31)
+++ mono-based-binutils/trunk/tools/gcc4cli/ld/Driver.cs	2010-04-06 19:24:53 UTC (rev 32)
@@ -101,7 +101,9 @@
                             break;
 
                         case 'l':
-                            AddLibrary (token.Substring (2));
+                            if (token != "-lm") {
+                                AddLibrary (token.Substring (2));
+                            }
                             break;
 
                         case 'v':
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |