[all-commits] [llvm/llvm-project] acf9aa: [clang] Support __attribute__((ifunc(...))) on Dar...

Jon Roelofs via All-commits all-commits at lists.llvm.org
Thu Dec 14 13:52:50 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acf9aa3c22d6fe88abba848d2804da1a732d205a
      https://github.com/llvm/llvm-project/commit/acf9aa3c22d6fe88abba848d2804da1a732d205a
  Author: Jon Roelofs <jonathan_roelofs at apple.com>
  Date:   2023-12-14 (Thu, 14 Dec 2023)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/test/CodeGen/attr-ifunc.c
    M clang/test/CodeGen/attr-ifunc.cpp
    M clang/test/CodeGen/ifunc.c
    M clang/test/CodeGenCXX/externc-ifunc-resolver.cpp
    M clang/test/SemaCXX/externc-ifunc-resolver.cpp
    A clang/test/SemaCXX/ifunc-has-attribute.cpp

  Log Message:
  -----------
  [clang] Support __attribute__((ifunc(...))) on Darwin platforms

Unlike ELF targets, MachO does not support the same kind of dynamic symbol
resolution at load time.  Instead, the corresponding MachO feature resolves
symbols lazily on first call.

Reviewers:
JDevlieghere, dmpolukhin, ahmedbougacha, tahonermann, echristo, MaskRay, erichkeane

Reviewed By: MaskRay, echristo, ahmedbougacha

Pull Request: https://github.com/llvm/llvm-project/pull/73687




More information about the All-commits mailing list