[clang] [llvm] [PowerPC] Support -fpatchable-function-entry (PR #92997)
Maryam Moghadas via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 11:48:15 PDT 2024
maryammo wrote:
> > So PPC64 can use ELFv2 for `Triple::OpenBSD`. We probably want to diagnose this OS for PPC64, since with ELFv2 we might emit separate local and global entry points which means only certain values can be passed to `-fpatchable-function-entry` option.
>
> This patch matches the intended end result: NOPs before the global entry and after the local entry.
>
> The current way GCC handles `N,M` where M>0 for PPC64 ELFv2 is undesired and will hopefully be soon changed: https://gcc.gnu.org/pipermail/gcc-patches/2024-May/651025.html , matching what I suggested in 2022: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99888#c5
I see, thanks.
https://github.com/llvm/llvm-project/pull/92997
More information about the llvm-commits
mailing list