diff options
| -rw-r--r-- | lld/ELF/OutputSections.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index e5c346af790..380f788cc2e 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -176,7 +176,8 @@ PltSection<ELFT>::PltSection() template <class ELFT> void PltSection<ELFT>::writeTo(uint8_t *Buf) { size_t Off = 0; if (Target->UseLazyBinding) { - // First write PLT[0] entry which is special. + // At beginning of PLT, we have code to call the dynamic linker + // to resolve dynsyms at runtime. Write such code. Target->writePltZero(Buf); Off += Target->PltZeroSize; } |

