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
This commit is contained in:
Iain Sandoe 2009-09-10 14:32:51 +00:00 committed by Jakub Jelinek
parent 90097c6771
commit bb59df5289
2 changed files with 18 additions and 4 deletions

View File

@ -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.

View File

@ -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