[PATCH] D26290: Only consider local functions local for the purpose of NOP eliminate after calls on PPC64

Hal Finkel via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 9 14:13:47 PST 2016


hfinkel added a comment.

In https://reviews.llvm.org/D26290#591010, @joerg wrote:

> I don't use -ffunction-sections or similar. It is a combination of two factors. The default assumption of PIC and the incorrect modelling of interposition rules in LLVM. GCC will emit calls the PLT for f on x86 when using PIC. That's the same behavior GNU ld implements for the relocation on PPC64.
>  It is most visible with C++ libraries.


Can you please provide a test case which fails to link (offline if necessary)? I'm still failing to understand the underlying problem and have not run into issues myself. Thanks!


https://reviews.llvm.org/D26290





More information about the llvm-commits mailing list