diff options
author | Jing Yu <jingyu@google.com> | 2009-11-05 16:55:30 -0800 |
---|---|---|
committer | Jing Yu <jingyu@google.com> | 2009-11-05 16:55:30 -0800 |
commit | 2cafa61b4b039e5ac3b876fc44a05c61d66df4d4 (patch) | |
tree | 1caaaacd28e00e283dbacd6726db52cbf2d5d909 /binutils-2.19/ld/genscrba.sh | |
parent | 8d401cf711539af5a2f78d12447341d774892618 (diff) | |
download | toolchain_binutils-2cafa61b4b039e5ac3b876fc44a05c61d66df4d4.zip toolchain_binutils-2cafa61b4b039e5ac3b876fc44a05c61d66df4d4.tar.gz toolchain_binutils-2cafa61b4b039e5ac3b876fc44a05c61d66df4d4.tar.bz2 |
check in binutils sources for prebuilt toolchains in Eclair.
Diffstat (limited to 'binutils-2.19/ld/genscrba.sh')
-rw-r--r-- | binutils-2.19/ld/genscrba.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/binutils-2.19/ld/genscrba.sh b/binutils-2.19/ld/genscrba.sh new file mode 100644 index 0000000..030cb7d --- /dev/null +++ b/binutils-2.19/ld/genscrba.sh @@ -0,0 +1,16 @@ +#!/bin/bash +source_em() +{ + local current_script="$em_script" + em_script=$1 + . $em_script + em_script=$current_script +} +fragment() +{ + if [ ${BASH_VERSINFO[3]} -ge 3 ]; then + local lineno=$[${BASH_LINENO[0]} + 1] + echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\"" + fi + cat >> e${EMULATION_NAME}.c +} |