summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2007-10-26 06:33:59 +0000
committerAlan Modra <amodra@bigpond.net.au>2007-10-26 06:33:59 +0000
commit22628a14015c6cef124067440c282c48772b78b8 (patch)
treedb7316418c4c8a51063c28c10b67198b6969a562
parent716e540a0b9b746f1bf6c02efdd1c7d742646d73 (diff)
downloadbinutils-redhat-22628a14015c6cef124067440c282c48772b78b8.tar.gz
PR 5215
* genscripts.sh: Move bash script to.. * genscrba.sh: ..here.
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/genscrba.sh14
-rwxr-xr-xld/genscripts.sh14
3 files changed, 22 insertions, 14 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 104a0ff8a2..5fc553ca79 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-26 Alan Modra <amodra@bigpond.net.au>
+
+ PR 5215
+ * genscripts.sh: Move bash script to..
+ * genscrba.sh: ..here.
+
2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
* pe-dll.c (autofilter_symbollist_generic)
@@ -45,7 +51,7 @@
2007-10-01 Nick Clifton <nickc@redhat.com>
PR linker/4844
- * genscript.sh: Add support for generating a .xa script for use
+ * genscripts.sh: Add support for generating a .xa script for use
with the --auto-import option.
* ld.texinfo: Document the new behaviour of the --auto-import
option.
diff --git a/ld/genscrba.sh b/ld/genscrba.sh
new file mode 100644
index 0000000000..621de7ab47
--- /dev/null
+++ b/ld/genscrba.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+source_em()
+{
+ local current_script="$em_script"
+ em_script=$1
+ . $em_script
+ em_script=$current_script
+}
+fragment()
+{
+ local lineno=$[${BASH_LINENO[0]} + 1]
+ echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
+ cat >> e${EMULATION_NAME}.c
+}
diff --git a/ld/genscripts.sh b/ld/genscripts.sh
index 10623ecba5..46af1da089 100755
--- a/ld/genscripts.sh
+++ b/ld/genscripts.sh
@@ -402,19 +402,7 @@ case " $EMULATION_LIBPATH " in
esac
if test -n "${BASH+set}"; then
- source_em()
- {
- local current_script="$em_script"
- em_script=$1
- . $em_script
- em_script=$current_script
- }
- fragment()
- {
- local lineno=$[${BASH_LINENO[0]} + 1]
- echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
- cat >> e${EMULATION_NAME}.c
- }
+ . ${srcdir}/genscrba.sh
else
source_em()
{