diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-10 14:32:51 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-10 14:32:51 +0000 |
commit | 077917c73675d6f19ccaa1c3ec6affb64b1adb5d (patch) | |
tree | 39b75f3dc543efdb8d0a79142f9df98b062f2a66 /contrib/compare-debug | |
parent | 9929334ecabba70bce26430b39604247fd93a77a (diff) | |
download | gcc-077917c73675d6f19ccaa1c3ec6affb64b1adb5d.tar.gz |
PR bootstrap/41245
* compare-debug: Handle stripping of dwarf debug sections from darwin
mach-o objects.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151594 138bc75d-0d04-0410-961f-82ee72b054a4
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 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 |