[ELF] Make TargetInfo::writeIgotPlt a no-op
authorFangrui Song <maskray@google.com>
Thu, 9 Jan 2020 19:59:28 +0000 (11:59 -0800)
committerFangrui Song <maskray@google.com>
Fri, 10 Jan 2020 17:59:22 +0000 (09:59 -0800)
commit2d077d6dfa7909a21293ebdac81488367628e0fa
tree197d48ebeaafd3faebd00d1f0eb2243a769d8528
parentf17ae668a96eeb69f0664f126cf672e1a05754d2
[ELF] Make TargetInfo::writeIgotPlt a no-op

RELA targets don't read initial .got.plt entries.
REL targets (ARM, x86-32) write the address of the IFUNC resolver to the
entry (`write32le(buf, s.getVA())`).

The default writeIgotPlt() is not meaningful. Make it a no-op. AArch64
and x86-64 will have 0 as initial .got.plt entries associated with
IFUNC.

Reviewed By: peter.smith

Differential Revision: https://reviews.llvm.org/D72474
lld/ELF/Target.cpp
lld/ELF/Target.h
lld/test/ELF/aarch64-gnu-ifunc-plt.s
lld/test/ELF/gnu-ifunc-plt.s