[llvm-bugs] [Bug 47586] New: lld 10 fails to link mozilla rr: can't create dynamic relocation R_386_32 against local symbol in readonly segment
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Sep 19 11:11:05 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47586
Bug ID: 47586
Summary: lld 10 fails to link mozilla rr: can't create dynamic
relocation R_386_32 against local symbol in readonly
segment
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: mail at milianw.de
CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com
When I try to compile mozilla rr (https://github.com/mozilla/rr) with lld
10.0.1 I get:
ld.lld: error: can't create dynamic relocation R_386_32 against local symbol in
readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to
allow text relocations in the output
>>> defined in CMakeFiles/fxregs_32.dir/32/x86/fxregs.c.o
>>> referenced by fxregs.c:64 (32/x86/fxregs.c:64)
>>> CMakeFiles/fxregs_32.dir/32/x86/fxregs.c.o:(main)
The maintainer says that for him linking with lld 9 succeeds. See also the bug
report over at rr for this issue: https://github.com/mozilla/rr/issues/2650
--
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/20200919/1afb8fb5/attachment.html>
More information about the llvm-bugs
mailing list