[llvm-bugs] [Bug 39810] New: error: -shared and -pie may not be used together
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 27 11:08:31 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39810
Bug ID: 39810
Summary: error: -shared and -pie may not be used together
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: ndesaulniers at google.com
CC: grimar at accesssoftek.com, llozano at chromium.org,
llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
ruiu at google.com, srhines at google.com
The Linux kernel for arm64 uses `-pie -shared` for LDFLAGS when using KASLR
(kernel address space layout randomization). Trying to link an arm64 Linux
kernel with CONFIG_RANDOMIZE_BASE=y or CONFIG_RELOCATABLE=y produces the
following error from lld:
ld.lld: error: -shared and -pie may not be used together
--
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/20181127/4f65cb4d/attachment-0001.html>
More information about the llvm-bugs
mailing list