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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
When elf/ldconfig in glibc configured with --enable-static-pie is built
with lld on Linux/x86-64, I got
[hjl@gnu-skx-1 build-x86_64-linux]$ ./elf/ldconfig
Segmentation fault (core dumped)
[hjl@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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs