[all-commits] [llvm/llvm-project] b61626: [LLD][ELF][AArch64] Change the semantics of -z pac...

Dani via All-commits all-commits at lists.llvm.org
Tue Feb 18 00:57:02 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b6162622c054fa74a7f2588df00059475f112212
      https://github.com/llvm/llvm-project/commit/b6162622c054fa74a7f2588df00059475f112212
  Author: Daniel Kiss <daniel.kiss at arm.com>
  Date:   2020-02-18 (Tue, 18 Feb 2020)

  Changed paths:
    M lld/ELF/Arch/AArch64.cpp
    M lld/ELF/Driver.cpp
    M lld/ELF/SyntheticSections.cpp
    M lld/test/ELF/aarch64-feature-bti.s
    M lld/test/ELF/aarch64-feature-btipac.s
    M lld/test/ELF/aarch64-feature-pac.s

  Log Message:
  -----------
  [LLD][ELF][AArch64] Change the semantics of -z pac-plt.

Summary:
Generate PAC protected plt only when "-z pac-plt" is passed to the
linker. GNU toolchain generates when it is explicitly requested[1].
When pac-plt is requested then set the GNU_PROPERTY_AARCH64_FEATURE_1_PAC
note even when not all function compiled with PAC but issue a warning.
Harmonizing the warning style for BTI/PAC/IBT.
Generate BTI protected PLT if case of "-z force-bti".

[1] https://www.sourceware.org/ml/binutils/2019-03/msg00021.html

Reviewers: peter.smith, espindola, MaskRay, grimar

Reviewed By: peter.smith, MaskRay

Subscribers: tatyana-krasnukha, emaste, arichardson, kristof.beyls, MaskRay, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list