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]

Re: Use .reloc in embedspu


On Tue, Mar 27, 2007 at 09:25:20AM +0930, Alan Modra wrote:
> New embedspu features.

The reason I didn't commit this last night was because I discovered a
bug, then I went ahead and committed it anyway this morning.  Sigh.

	* embedspu.sh: Correct toe_addr quoting.

Index: binutils/embedspu.sh
===================================================================
RCS file: /cvs/src/src/binutils/embedspu.sh,v
retrieving revision 1.4
diff -u -p -r1.4 embedspu.sh
--- binutils/embedspu.sh	26 Mar 2007 23:56:40 -0000	1.4
+++ binutils/embedspu.sh	27 Mar 2007 02:09:56 -0000
@@ -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]); \

-- 
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]