Fix embedspu scan of symbol addresses
Alan Modra
amodra@bigpond.net.au
Mon Jun 18 02:08:00 GMT 2007
Symbol values printed by readelf are in hex.
binutils/
* embedspu.sh: Parse _SPUEAR_ symbol values as hex.
Index: binutils/embedspu.sh
===================================================================
RCS file: /cvs/src/src/binutils/embedspu.sh,v
retrieving revision 1.8
diff -u -p -r1.8 embedspu.sh
--- binutils/embedspu.sh 5 Jun 2007 00:27:39 -0000 1.8
+++ binutils/embedspu.sh 16 Jun 2007 03:04:01 -0000
@@ -248,7 +248,7 @@ ${SYMBOL}:
print " .type '${SYMBOL}'_" substr($8, 9) ", @object"; \
print " .size '${SYMBOL}'_" substr($8, 9) ", 4"; \
print "'${SYMBOL}'_" substr($8, 9) ":"; \
- print " .int " $2; \
+ print " .int 0x" $2; \
} \
'`
EOF
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list