Can't create dynamic relocation against local symbol in readonly segment
- Dominant language
- Rust
- Stars
- 890
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
On my machine the example test fails to link on lld 8.0:
```
note: ld.lld: error: can't create dynamic relocation R_X86_64_64 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 /.../debug/deps/example-56d39e659ef87805.3p5k1gwcovuwpn4a.rcgu.o
>>> referenced by 3p5k1gwcovuwpn4a
>>> /.../debug/deps/example-56d39e659ef87805.3p5k1gwcovuwpn4a.rcgu.o:(example::BENCH_DESERIALIZE::h28653d3b093a8cd3)
```
[There's some nuance to this](http://lists.llvm.org/pipermail/llvm-dev/2017-March/111450.html) that I'm not really up to diving into right now.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.