<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Russell King - ARM Linux wrote:
<blockquote cite="mid:20110121094446.GF13235@n2100.arm.linux.org.uk"
type="cite">
<pre wrap="">On Wed, Jan 19, 2011 at 02:44:45PM +0800, Stanley.Miao wrote:
</pre>
<blockquote type="cite">
<pre wrap="">@@ -174,9 +186,9 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
                        * other bits to re-code instruction as
                        * MOV PC,Rm.
                        */
-                 *(u32 *)loc &= 0xf000000f;
-                 *(u32 *)loc |= 0x01a0f000;
-                 break;
+                        write_instr32((read_instr32(loc) & 0xf000000f) |
+                                                        0x01a0f000, loc);
+                        break;
</pre>
</blockquote>
<pre wrap=""><!---->
Indentation error.
</pre>
</blockquote>
Actually, The indentation of my code is right, and the original code is
wrong.<br>
<br>
Stanley.<br>
<br>
</body>
</html>