https://llvm.org/bugs/show_bug.cgi?id=24647
Bug ID: 24647 Summary: -fpie has no effect on code generation when doing LTO Product: new-bugs Version: trunk Hardware: PC OS: All Status: NEW Severity: enhancement Priority: P Component: new bugs Assignee: unassignedb...@nondot.org Reporter: ahata...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified -fpie enables optimizations that are valid only when it is known that a position independent code is linked into an executable. However, these optimizations are not enabled when doing LTO since that information is not conveyed to the backend. This can possibly be fixed by using module flags or passing -fpie to the driver's command line. It is also possible to have the linker inform the backend via libLTO or gold plugin whether it is linking an executable or a shared library. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs