<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 14, 2011, at 12:20 PM, Jason Kim wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><blockquote type="cite"><br></blockquote><br>Hi Evan,<br><br>FYI, the movt hi16 fixup you put in does not match the output of GNU as -<br>Let me look into this and figure out why. I'll reply soon.<br><br>-jason<font class="Apple-style-span" color="#006312"><br></font></div></blockquote><br></div><div><br></div><div>Interesting. That's probably due to this:</div><div><br></div><div><blockquote type="cite" style="font-family: monospace; ">  case ARM::fixup_arm_movt_hi16:<br></blockquote><blockquote type="cite" style="font-family: monospace; ">-  case ARM::fixup_arm_movw_lo16:<br></blockquote><blockquote type="cite" style="font-family: monospace; ">  case ARM::fixup_arm_movt_hi16_pcrel:<br></blockquote><blockquote type="cite" style="font-family: monospace; ">+    Value >>= 16;<br></blockquote><blockquote type="cite" style="font-family: monospace; ">+    // Fallthrough<br></blockquote><blockquote type="cite" style="font-family: monospace; ">+  case ARM::fixup_arm_movw_lo16:<br></blockquote><blockquote type="cite" style="font-family: monospace; ">  case ARM::fixup_arm_movw_lo16_pcrel: {<br></blockquote><blockquote type="cite" style="font-family: monospace; ">    unsigned Hi4 = (Value & 0xF000) >> 12;<br></blockquote><blockquote type="cite" style="font-family: monospace; ">    unsigned Lo12 = Value & 0x0FFF;<br></blockquote><blockquote type="cite" style="font-family: monospace; ">@@ -168,6 +175,26 @@<br></blockquote><blockquote type="cite" style="font-family: monospace; ">    Value = (Hi4 << 16) | (Lo12);<br></blockquote><blockquote type="cite" style="font-family: monospace; ">    return Value;<br></blockquote><blockquote type="cite" style="font-family: monospace; ">  }</blockquote><br></div><div>Notice the Value is shifted down 16 bits for movt. I'm fairly sure this is right, at least for Darwin. It's possible there is a bug elsewhere.</div><div><br></div><div>Evan</div><div><br></div><br></body></html>