diff options
author | Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> | 2009-09-10 14:32:51 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-09-10 16:32:51 +0200 |
commit | bb59df5289101b9eee8eb6c5914eb14562717c1d (patch) | |
tree | 39b75f3dc543efdb8d0a79142f9df98b062f2a66 /contrib/compare-debug | |
parent | 90097c677180701eb96cce0628b50a76e6b36441 (diff) | |
download | gcc-bb59df5289101b9eee8eb6c5914eb14562717c1d.zip gcc-bb59df5289101b9eee8eb6c5914eb14562717c1d.tar.gz gcc-bb59df5289101b9eee8eb6c5914eb14562717c1d.tar.bz2 |
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
Diffstat (limited to 'contrib/compare-debug')
-rwxr-xr-x | contrib/compare-debug | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/contrib/compare-debug b/contrib/compare-debug index 6f2b4ab..98c80f9 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 |