[llvm-bugs] [Bug 48621] New: lld can't build working static PIE on Linux/x86-64
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 29 05:22:17 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48621
Bug ID: 48621
Summary: lld can't build working static PIE on Linux/x86-64
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: hjl.tools at gmail.com
CC: i at maskray.me, llvm-bugs at lists.llvm.org,
smithp352 at googlemail.com
When elf/ldconfig in glibc configured with --enable-static-pie is built
with lld on Linux/x86-64, I got
[hjl at gnu-skx-1 build-x86_64-linux]$ ./elf/ldconfig
Segmentation fault (core dumped)
[hjl at gnu-skx-1 build-x86_64-linux]$
One difference between lld generated ldconfig vs ld generated ldconfig is
lld:
Relocation section '.rela.dyn' at offset 0x318 contains 1469 entries:
ld:
Relocation section '.rela.dyn' at offset 0x398 contains 1434 entries:
If lld can generate the same number of dynamic relocations as ld, static PIE
may work with lld.
--
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/20201229/8234486b/attachment-0001.html>
More information about the llvm-bugs
mailing list