[all-commits] [llvm/llvm-project] a48f60: [AArch64] Generate .note.gnu.property based on mod...

Dani via All-commits all-commits at lists.llvm.org
Mon Sep 28 05:14:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a48f6079f288619fcc7656e89e8aa7cd0aac1281
      https://github.com/llvm/llvm-project/commit/a48f6079f288619fcc7656e89e8aa7cd0aac1281
  Author: Daniel Kiss <daniel.kiss at arm.com>
  Date:   2020-09-28 (Mon, 28 Sep 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
    M llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-0.ll
    M llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-1.ll
    M llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-2.ll
    M llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-3.ll
    M llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-4.ll
    R llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-5.ll
    R llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-6.ll
    R llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-7.ll
    R llvm/test/CodeGen/AArch64/note-gnu-property-pac-bti-8.ll

  Log Message:
  -----------
  [AArch64] Generate .note.gnu.property based on module flags.

Flags of the module derived exclusively from the compiler flag `-mbranch-protection`.
The note is generated based on the module flags accordingly.
After this change in case of compile unit without function won't have
the .note.gnu.property if the compiler flag is not present [1].

[1] https://bugs.llvm.org/show_bug.cgi?id=46480

Reviewed By: chill

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




More information about the All-commits mailing list