projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix linker tests to work with 16-bit targets.
[deliverable/binutils-gdb.git]
/
ld
/
genscrba.sh
diff --git
a/ld/genscrba.sh
b/ld/genscrba.sh
index 621de7ab47a4261543966dc1f77f70da33def304..d10e27a43c60fa18467479b32ee583c0f4d8945e 100644
(file)
--- a/
ld/genscrba.sh
+++ b/
ld/genscrba.sh
@@
-3,12
+3,14
@@
source_em()
{
local current_script="$em_script"
em_script=$1
{
local current_script="$em_script"
em_script=$1
- . $em_script
+ source_sh $1
em_script=$current_script
}
fragment()
{
em_script=$current_script
}
fragment()
{
- local lineno=$[${BASH_LINENO[0]} + 1]
- echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
+ 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
}
cat >> e${EMULATION_NAME}.c
}
This page took
0.023251 seconds
and
4
git commands to generate.