rust/compiler/rustc_codegen_llvm/src/back
Jonathan Brouwer dec8d6ebcf
Rollup merge of #150780 - fzakaria:fzakaria/section-threshold, r=jackh726
Add -Z large-data-threshold

This flag allows specifying the threshold size for placing static data in large data sections when using the medium code model on x86-64.

When using -Ccode-model=medium, data smaller than this threshold uses RIP-relative addressing (32-bit offsets), while larger data uses absolute 64-bit addressing. This allows the compiler to generate more efficient code for smaller data while still supporting data larger than 2GB.

This mirrors the -mlarge-data-threshold flag available in GCC and Clang. The default threshold is 65536 bytes (64KB) if not specified, matching LLVM's default behavior.
2026-01-23 11:07:55 +01:00
..
archive.rs Update to ar_archive_writer 0.5.1 2025-08-29 16:37:42 -07:00
lto.rs Rollup merge of #149209 - lto_refactors8, r=jackh726 2026-01-21 02:04:01 -05:00
mod.rs Remove current code for embedding command-line args in PDB 2025-10-18 12:24:40 +11:00
owned_target_machine.rs Add -Z large-data-threshold 2026-01-07 11:57:48 -08:00
profiling.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
write.rs Rollup merge of #150780 - fzakaria:fzakaria/section-threshold, r=jackh726 2026-01-23 11:07:55 +01:00