* embedspu.sh: Correct toe_addr quoting.

This commit is contained in:
Alan Modra 2007-03-27 02:10:58 +00:00
parent 89daedbdbc
commit 48d8dc645f
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-03-27 Alan Modra <amodra@bigpond.net.au>
* embedspu.sh: Correct toe_addr quoting.
2007-03-27 Alan Modra <amodra@bigpond.net.au> 2007-03-27 Alan Modra <amodra@bigpond.net.au>
* embedspu.sh: Combine "_EAR_" and "_EAR_*" patterns. Tighten * embedspu.sh: Combine "_EAR_" and "_EAR_*" patterns. Tighten

View File

@ -149,7 +149,7 @@ __speelf__:
__spetoe__: __spetoe__:
`${READELF} -s -W ${INFILE} | grep ' _EAR_' | sort -k 2 | awk \ `${READELF} -s -W ${INFILE} | grep ' _EAR_' | sort -k 2 | awk \
'BEGIN { \ 'BEGIN { \
addr = strtonum ("0x" '${toe_addr-0}'); \ addr = strtonum ("0x" "'${toe_addr-0}'"); \
split ("'"${sections}"'", s, " "); \ split ("'"${sections}"'", s, " "); \
for (i = 1; i in s; i += 3) { \ for (i = 1; i in s; i += 3) { \
sec_off[s[i]] = strtonum ("0x" s[i+2]) - strtonum ("0x" s[i+1]); \ sec_off[s[i]] = strtonum ("0x" s[i+2]) - strtonum ("0x" s[i+1]); \