summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-14 05:17:41 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-14 05:17:41 +0000
commit4f61e50d1cb81f3caced1e4cfe6ae22327a93925 (patch)
treef88d3a397949e313a970b9ac73ff0020ab38fcda /contrib
parentf213a307a1e54b1a4a61904f697c605085fd4c84 (diff)
downloadgcc-4f61e50d1cb81f3caced1e4cfe6ae22327a93925.tar.gz
2009-09-14 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 151679 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@151680 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog6
-rwxr-xr-xcontrib/compare-debug16
2 files changed, 18 insertions, 4 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 3174cfff58e..b4627d293b6 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-10 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
+
+ PR bootstrap/41245
+ * compare-debug: Handle stripping of dwarf debug sections from darwin
+ mach-o objects.
+
2009-09-04 Alexandre Oliva <aoliva@redhat.com>
* compare-debug: Grep for blank before dash to avoid grep -e.
diff --git a/contrib/compare-debug b/contrib/compare-debug
index 6f2b4abfb5c..98c80f93e98 100755
--- a/contrib/compare-debug
+++ b/contrib/compare-debug
@@ -57,11 +57,19 @@ done
trap 'rm -f "$1.$suf1" "$2.$suf2"' 0 1 2 15
-cp "$1" "$1.$suf1"
-strip "$1.$suf1"
+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"
+ ;;
+*)
+ cp "$1" "$1.$suf1"
+ strip "$1.$suf1"
-cp "$2" "$2.$suf2"
-strip "$2.$suf2"
+ cp "$2" "$2.$suf2"
+ strip "$2.$suf2"
+ ;;
+esac
if cmp "$1.$suf1" "$2.$suf2"; then
status=0