[llvm-bugs] [Bug 24647] New: -fpie has no effect on code generation when doing LTO

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 31 16:23:23 PDT 2015


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: unassignedbugs at nondot.org
          Reporter: ahatanak at gmail.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150831/204bf47e/attachment.html>


More information about the llvm-bugs mailing list