fix darwin8 bootstrap issue
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Jul 2010 08:56:04 +0000 (08:56 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Jul 2010 08:56:04 +0000 (08:56 +0000)
       * compare-debug (Darwin): Remove '-x' flag from ld-based object
       stripping.  Add a comment as to why we do it this way.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161686 138bc75d-0d04-0410-961f-82ee72b054a4

contrib/ChangeLog
contrib/compare-debug

index 1227153..414e31e 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-02  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * compare-debug (Darwin): Remove '-x' flag from ld-based object
+       stripping.  Add a comment as to why we do it this way.
+
 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
 
        * compare-debug: Drop LTO sections.
index 820721c..ea68b43 100755 (executable)
@@ -59,8 +59,10 @@ trap 'rm -f "$1.$suf1" "$2.$suf2"' 0 1 2 15
 
 case `uname -s` in
 Darwin)
-  ld -S -x -r -no_uuid "$1" -o "$1.$suf1"
-  ld -S -x -r -no_uuid "$2" -o "$2.$suf2"
+  # The strip command on darwin does not remove all debug info.
+  # Fortunately, we can use ld to do it instead.
+  ld -S -r -no_uuid "$1" -o "$1.$suf1"
+  ld -S -r -no_uuid "$2" -o "$2.$suf2"
   ;;
 *)
   cp "$1" "$1.$suf1"