[all-commits] [llvm/llvm-project] 2d077d: [ELF] Make TargetInfo::writeIgotPlt a no-op

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Jan 10 10:02:22 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d077d6dfa7909a21293ebdac81488367628e0fa
      https://github.com/llvm/llvm-project/commit/2d077d6dfa7909a21293ebdac81488367628e0fa
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-01-10 (Fri, 10 Jan 2020)

  Changed paths:
    M lld/ELF/Target.cpp
    M lld/ELF/Target.h
    M lld/test/ELF/aarch64-gnu-ifunc-plt.s
    M lld/test/ELF/gnu-ifunc-plt.s

  Log Message:
  -----------
  [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




More information about the All-commits mailing list