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

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 9 14:07:29 PST 2016


joerg added a comment.

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.


https://reviews.llvm.org/D26290





More information about the llvm-commits mailing list