This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix embedspu scan of symbol addresses
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Mon, 18 Jun 2007 11:38:48 +0930
- Subject: Fix embedspu scan of symbol addresses
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