<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV>Hi,</DIV>
<DIV>&nbsp;&nbsp;Some naive questions about u-boot for MPC85xx, &nbsp;the 
definition of <BR>some macro in ppc_asm.tmpl. Can anyone there explain them to 
me please? <BR></DIV>
<DIV>
<P>&nbsp;1) &nbsp; In GET_GOT(x) what does &nbsp;" lwz r0,0b-1b(r14) ;" do? what 
does <BR>"0b-1b" stands for, or the meaning of the syntax? why move the content 
<BR>of the memory pointing by LR? <BR>
<P>
<DIV class=qt style="DISPLAY: block">#define GET_GOT &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;\&nbsp;</DIV>
<DIV class=qt 
style="DISPLAY: block">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bl &nbsp; 
&nbsp; &nbsp;1f &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; &nbsp; &nbsp; 
&nbsp; \&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.text &nbsp; 2 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; &nbsp; &nbsp; &nbsp; 
\&nbsp;<BR> 0: &nbsp; &nbsp; .long &nbsp; .LCTOC1-1f &nbsp; &nbsp; &nbsp;; 
&nbsp; &nbsp; &nbsp; \&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.text 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; &nbsp; &nbsp; 
&nbsp; \ <BR>1: &nbsp; &nbsp; &nbsp;mflr &nbsp; &nbsp;r14 &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; ; &nbsp; &nbsp; &nbsp; 
\&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lwz &nbsp; &nbsp; 
r0,0b-1b(r14) &nbsp; ; &nbsp; &nbsp; &nbsp; 
\&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;add &nbsp; &nbsp; 
r14,r0,r14 &nbsp; &nbsp; &nbsp;; <BR><BR></DIV>2) In START_GOT, &nbsp;any 
special meaning for the value 32768? <BR>&nbsp;&gt;&gt; .LCTOC1=.+32768 <BR>
<P>3) Syntax for GOT_ENTRY(NAME) &nbsp;and GOT(NAME), 
&nbsp;like&nbsp;&nbsp;&nbsp; . - .LCTOC1 (line 57) and .text 2 (line 
50)<BR>could not find then in the GNU douments (ld, as, gcc, glibc etc). <BR>
<P>Thanks for the help!! <BR></P></DIV></DIV></BODY></HTML>