Author: zoltan
Date: 2007-03-07 07:45:37 -0500 (Wed, 07 Mar 2007)
New Revision: 73881

Modified:
   trunk/mono/ChangeLog
   trunk/mono/docs/aot-compiler.txt
Log:
2007-03-07  Zoltan Varga  <[EMAIL PROTECTED]>

        * docs/aot-compiler.txt: Add into about the PLT.


Modified: trunk/mono/ChangeLog
===================================================================
--- trunk/mono/ChangeLog        2007-03-07 12:38:12 UTC (rev 73880)
+++ trunk/mono/ChangeLog        2007-03-07 12:45:37 UTC (rev 73881)
@@ -1,5 +1,7 @@
 2007-03-07  Zoltan Varga  <[EMAIL PROTECTED]>
 
+       * docs/aot-compiler.txt: Add into about the PLT.
+       
        * docs/aot-compiler.txt: Update a bit to reflect recent changes.
 
 2007-02-24  Raja R Harinath  <[EMAIL PROTECTED]>

Modified: trunk/mono/docs/aot-compiler.txt
===================================================================
--- trunk/mono/docs/aot-compiler.txt    2007-03-07 12:38:12 UTC (rev 73880)
+++ trunk/mono/docs/aot-compiler.txt    2007-03-07 12:45:37 UTC (rev 73881)
@@ -89,6 +89,18 @@
        
        svn diff -r 37739:38213 mini-x86.c 
 
+       * The Program Linkage Table
+
+       As in ELF, calls made from AOT code do not go through the GOT. Instead, 
a direct call is
+       made to an entry in the Program Linkage Table (PLT). This is based on 
the fact that on
+       most architectures, call instructions use a displacement instead of an 
absolute address, so
+       they are already position independent. An PLT entry is usually a jump 
instruction, which
+       initially points to some trampoline code which transfers control to the 
AOT loader, which
+       will compile the called method, and patch the PLT entry so that further 
calls are made
+       directly to the called method.
+       If the called method is in the same assembly, and does not need 
initialization (i.e. it
+    doesn't have GOT slots etc), then the call is made directly, bypassing the 
PLT.
+
 * The Precompiled File Format
 -----------------------------
        

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to