Index: ELF/Arch/X86_64.cpp =================================================================== --- ELF/Arch/X86_64.cpp +++ ELF/Arch/X86_64.cpp @@ -113,10 +113,10 @@ } template void X86_64::writeGotPltHeader(uint8_t *Buf) const { - // The first entry holds the value of _DYNAMIC. It is not clear why that is - // required, but it is documented in the psabi and the glibc dynamic linker - // seems to use it (note that this is relevant for linking ld.so, not any - // other program). + // The first entry holds the link-time address of _DYNAMIC. It is documented + // in the psABI and glibc dynamic linker elf_machine_dynamic uses it to + // compute run-time load address of the shared object (note that this is + // relevant for linking ld.so, not any other program). write64le(Buf, InX::Dynamic->getVA()); }