[lld] r259149 - Add a comment.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 19:00:30 PST 2016


Author: ruiu
Date: Thu Jan 28 21:00:30 2016
New Revision: 259149

URL: http://llvm.org/viewvc/llvm-project?rev=259149&view=rev
Log:
Add a comment.

Modified:
    lld/trunk/ELF/Target.h

Modified: lld/trunk/ELF/Target.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.h?rev=259149&r1=259148&r2=259149&view=diff
==============================================================================
--- lld/trunk/ELF/Target.h (original)
+++ lld/trunk/ELF/Target.h Thu Jan 28 21:00:30 2016
@@ -42,8 +42,13 @@ public:
   virtual void writeGotHeader(uint8_t *Buf) const;
   virtual void writeGotPltHeader(uint8_t *Buf) const;
   virtual void writeGotPlt(uint8_t *Buf, uint64_t Plt) const = 0;
+
+  // If lazy binding is supported, the first entry of the PLT has code
+  // to call the dynamic linker to resolve PLT entries the first time
+  // they are called. This function writes that code.
   virtual void writePltZero(uint8_t *Buf, uint64_t GotEntryAddr,
                             uint64_t PltEntryAddr) const = 0;
+
   virtual void writePlt(uint8_t *Buf, uint64_t GotAddr, uint64_t GotEntryAddr,
                         uint64_t PltEntryAddr, int32_t Index,
                         unsigned RelOff) const = 0;




More information about the llvm-commits mailing list