about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-23 22:26:31 +0000
committerbors <bors@rust-lang.org>2023-08-23 22:26:31 +0000
commit441086879821d554ecdfde391e767d1a954fd5e2 (patch)
tree57ca21b05248febf0f98ea97f9db9d467a435582 /compiler/rustc_errors/src/json.rs
parent249595b7523fc07a99c1adee90b1947739ca0e5b (diff)
parentf3d81917fc546420cb9deadc22cbab30133abd79 (diff)
downloadrust-441086879821d554ecdfde391e767d1a954fd5e2.tar.gz
rust-441086879821d554ecdfde391e767d1a954fd5e2.zip
Auto merge of #106511 - MaskRay:gotpcrelx, r=nikic
Default relax_elf_relocations to true

This option tells LLVM to emit relaxable relocation types R_X86_64_GOTPCRELX/R_X86_64_REX_GOTPCRELX/R_386_GOT32X in applicable cases. True matches Clang's CMake default since 2020-08 [1] and latest LLVM default[2].

This also works around a GNU ld<2.41 issue[2] when using general-dynamic/local-dynamic TLS models in `-Z plt=no` mode with latest LLVM.

[1]: https://github.com/llvm/llvm-project/commit/c41a18cf61790fc898dcda1055c3efbf442c14c0
[2]: https://github.com/llvm/llvm-project/commit/2aedfdd9b82e6c72a28576d0e8ea854f1300ff4e
[3]: https://sourceware.org/bugzilla/show_bug.cgi?id=24784
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
0 files changed, 0 insertions, 0 deletions