[all-commits] [llvm/llvm-project] 9d7001: [ELF][X86] Don't create IBT .plt if there is no PL...

João Moreira via All-commits all-commits at lists.llvm.org
Fri Feb 25 19:55:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d7001eba9c4cb311e03cd8cdc231f9e579f2d0f
      https://github.com/llvm/llvm-project/commit/9d7001eba9c4cb311e03cd8cdc231f9e579f2d0f
  Author: Joao Moreira <joao.moreira at intel.com>
  Date:   2022-02-26 (Sat, 26 Feb 2022)

  Changed paths:
    M lld/ELF/SyntheticSections.cpp
    M lld/ELF/SyntheticSections.h
    M lld/test/ELF/format-binary.test
    M lld/test/ELF/x86-64-feature-cet.s

  Log Message:
  -----------
  [ELF][X86] Don't create IBT .plt if there is no PLT entry

https://github.com/ClangBuiltLinux/linux/issues/1606
When GNU_PROPERTY_X86_FEATURE_1_IBT is enabled, ld.lld will create .plt output
section even if there is no PLT entry. Fix this by implementing
IBTPltSection::isNeeded instead of using the default code path (which always
returns true).

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D120600




More information about the All-commits mailing list