* emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 31 Jul 2008 05:27:54 +0000 (05:27 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 31 Jul 2008 05:27:54 +0000 (05:27 +0000)
ld/ChangeLog
ld/emultempl/spuelf.em

index 9f40d043f363ae528ff7477135ccb08bcc7528dd..6388638e043c3120e39417995d2a89c3ed36ef60 100644 (file)
@@ -1,3 +1,7 @@
+2008-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
+
 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
 
        * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
index 865078c6a68a98e60c4d4a2ca17c26f4f1925b48..2ad36635678e493e86d8e97eb4e6dff95484b639 100644 (file)
@@ -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 <<EOF
 };