From: Iain Sandoe Date: Thu, 10 Sep 2009 14:32:51 +0000 (+0000) Subject: re PR bootstrap/41245 (Bootstrap broken on I386-apple-darwin9 at revision 151373) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb59df5289101b9eee8eb6c5914eb14562717c1d;p=gcc.git re PR bootstrap/41245 (Bootstrap broken on I386-apple-darwin9 at revision 151373) PR bootstrap/41245 * compare-debug: Handle stripping of dwarf debug sections from darwin mach-o objects. From-SVN: r151594 --- 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 + + PR bootstrap/41245 + * compare-debug: Handle stripping of dwarf debug sections from darwin + mach-o objects. + 2009-09-04 Alexandre Oliva * 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