[all-commits] [llvm/llvm-project] f8ca5f: [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:57:02 PST 2022
Branch: refs/heads/release/14.x
Home: https://github.com/llvm/llvm-project
Commit: f8ca5fabdb54fdf64b3dffb38ebf7d0220f415a2
https://github.com/llvm/llvm-project/commit/f8ca5fabdb54fdf64b3dffb38ebf7d0220f415a2
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
(cherry picked from commit 9d7001eba9c4cb311e03cd8cdc231f9e579f2d0f)
More information about the All-commits
mailing list