From: Jan Kratochvil Date: Thu, 31 Jul 2008 05:27:54 +0000 (+0000) Subject: * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f9300efcdb2abb98ac68fbeafed47ac956c0d26;p=binutils-gdb.git * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 9f40d043f36..6388638e043 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2008-07-31 Jan Kratochvil + + * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'. + 2008-07-30 Alan Modra * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings. diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em index 865078c6a68..2ad36635678 100644 --- a/ld/emultempl/spuelf.em +++ b/ld/emultempl/spuelf.em @@ -57,7 +57,12 @@ char **my_argv; static const char ovl_mgr[] = { EOF -../binutils/bin2c < ${srcdir}/emultempl/spu_ovl.o >> e${EMULATION_NAME}.c +if ! ../binutils/bin2c < ${srcdir}/emultempl/spu_ovl.o >> e${EMULATION_NAME}.c +then + echo >&2 "Missing ${srcdir}/emultempl/spu_ovl.o" + echo >&2 "You must build gas/as-new with --target=spu to build spu_ovl.o" + exit 1 +fi fragment <