This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]