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: unassignedb...@nondot.org
          Reporter: ndesaulni...@google.com
                CC: gri...@accesssoftek.com, lloz...@chromium.org,
                    llvm-bugs@lists.llvm.org, peter.sm...@linaro.org,
                    r...@google.com, srhi...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to