[all-commits] [llvm/llvm-project] 3b162f: [PAC][clang] Add signed GOT cc1 flag (#96160)

Daniil Kovalev via All-commits all-commits at lists.llvm.org
Mon Nov 18 23:20:38 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b162f73d8027dcd8261666a40e9bdfb40f4dacc
      https://github.com/llvm/llvm-project/commit/3b162f73d8027dcd8261666a40e9bdfb40f4dacc
  Author: Daniil Kovalev <dkovalev at accesssoftek.com>
  Date:   2024-11-19 (Tue, 19 Nov 2024)

  Changed paths:
    M clang/include/clang/Basic/Features.def
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/CodeGen/AArch64/elf-pauthabi.c
    A clang/test/CodeGen/ptrauth-module-flags.c
    M clang/test/Preprocessor/ptrauth_feature.c

  Log Message:
  -----------
  [PAC][clang] Add signed GOT cc1 flag (#96160)

Add `-fptrauth-elf-got` clang cc1 flag and set `ptrauth_elf_got`
preprocessor feature and `PointerAuthELFGOT` LangOption correspondingly.
No additional checks like ensuring OS binary format is ELF are
performed: it should be done on clang driver level when a pauth-enabled
environment implying signed GOT enabled is requested.

If the cc1 flag is passed, "ptrauth-elf-got" IR module flag is set.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list