* embedspu.sh: Correct toe_addr quoting.
authorAlan Modra <amodra@gmail.com>
Tue, 27 Mar 2007 02:10:58 +0000 (02:10 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 27 Mar 2007 02:10:58 +0000 (02:10 +0000)
binutils/ChangeLog
binutils/embedspu.sh

index bb5790b..dd477f3 100644 (file)
@@ -1,5 +1,9 @@
 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
 
+       * embedspu.sh: Correct toe_addr quoting.
+
+2007-03-27  Alan Modra  <amodra@bigpond.net.au>
+
        * embedspu.sh: Combine "_EAR_" and "_EAR_*" patterns.  Tighten
        .toe section and .toe address checks.  Use .reloc for _EAR*
        symbols defined in non-BSS sections.  Build table for _SPUEAR_
index 693b5a4..3269ab8 100644 (file)
@@ -149,7 +149,7 @@ __speelf__:
 __spetoe__:
 `${READELF} -s -W ${INFILE} | grep ' _EAR_' | sort -k 2 | awk \
 'BEGIN { \
-       addr = strtonum ("0x" '${toe_addr-0}'); \
+       addr = strtonum ("0x" "'${toe_addr-0}'"); \
        split ("'"${sections}"'", s, " "); \
        for (i = 1; i in s; i += 3) { \
            sec_off[s[i]] = strtonum ("0x" s[i+2]) - strtonum ("0x" s[i+1]); \