aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorIain Sandoe <iains@gcc.gnu.org>2010-07-02 08:56:04 +0000
committerIain Sandoe <iains@gcc.gnu.org>2010-07-02 08:56:04 +0000
commit9a082684dfe6a5473f7f0bc4ec7373c01153aff7 (patch)
tree99a69350225adc7b80254507044b8c4d1993a624 /contrib
parent25db7f5997685fb3bbcb007fefc128801cd83c8e (diff)
downloadgcc-9a082684dfe6a5473f7f0bc4ec7373c01153aff7.zip
gcc-9a082684dfe6a5473f7f0bc4ec7373c01153aff7.tar.gz
gcc-9a082684dfe6a5473f7f0bc4ec7373c01153aff7.tar.bz2
fix darwin8 bootstrap issue
* compare-debug (Darwin): Remove '-x' flag from ld-based object stripping. Add a comment as to why we do it this way. From-SVN: r161686
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog5
-rwxr-xr-xcontrib/compare-debug6
2 files changed, 9 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 1227153..414e31e 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -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.
diff --git a/contrib/compare-debug b/contrib/compare-debug
index 820721c..ea68b43 100755
--- a/contrib/compare-debug
+++ b/contrib/compare-debug
@@ -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"