aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2008-07-31 05:27:54 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2008-07-31 05:27:54 +0000
commit2f9300efcdb2abb98ac68fbeafed47ac956c0d26 (patch)
treec9f22e3f0045a781fe21618915a380ad08a1a532
parentd970b3766333c406bf162f56e9ed6db0de7857e1 (diff)
downloadgdb-2f9300efcdb2abb98ac68fbeafed47ac956c0d26.zip
gdb-2f9300efcdb2abb98ac68fbeafed47ac956c0d26.tar.gz
gdb-2f9300efcdb2abb98ac68fbeafed47ac956c0d26.tar.bz2
* emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/emultempl/spuelf.em7
2 files changed, 10 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 9f40d04..6388638 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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.
diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em
index 865078c..2ad3663 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 <<EOF
};