https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65263
--- Comment #4 from Alan Modra <amodra at gmail dot com> --- > I assume the problem is that thunk can not be generated to non-local symbol. Yes, that is at the root of this problem. The thunk can't be allowed to jump to anything outside the current object file. The pattern is a sibcall_local64 except that the symbol_ref doesn't match rs6000/predicates.md: current_file_function_operand.