On PPC64le architecture, a function may have two entry points:
Global Entry Point (GEP)
Local Entry Point (LEP)
When entered though GEP, it executes extra instructions, which, in most cases, adjusts the TOC pointer.
The LEP comes right after these extra instructions.
When called locally (through LEP), this code is not executed, so when creating a breakpoint with the function
name, these instructions must be avoided, using the LEP instead of the GEP.
Thanks. This looks fine except for this requires line. As it stands now, the "powerpc" feature means "powerpc is a configured llvm target". Since you're using the system ld here, that is not enough. You'll need to modify lit/lit.cfg to add something like ppc64le-linux (similar to how we have armhf-linux) and use that here instead.