[llvm-bugs] [Bug 44594] clang++ cannot compile an executable with -fPIE because of possibly incorrect linking of crtbegin.o instead of crtbeginS.o

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 7 12:18:34 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=44594

KOLANICH <kolan_n at mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from KOLANICH <kolan_n at mail.ru> ---
It turned out that for usage of clang as a linker frontend I have to pass both
`-pie -Wl,-pie` (not just `-Wl,-pie` as I have passed)

-- 
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/20211107/554113a2/attachment.html>


More information about the llvm-bugs mailing list