rust/compiler/rustc_codegen_llvm/src
Stuart Cook 432a4f27fe
Rollup merge of #145051 - bjorn3:prevent_linkage_symbol_name_collision, r=petrochenkov
Prevent name collisions with internal implementation details

The implementation of the linkage attribute inside extern blocks defines symbols starting with _rust_extern_with_linkage_. If someone tries to also define this symbol you will get a symbol conflict or even an ICE. By adding an unpredictable component to the symbol name, this becomes less of an issue.

Spawned from the discussion at [#t-compiler > About static variables `_rust_extern_with_linkage_*`](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/About.20static.20variables.20.60_rust_extern_with_linkage_*.60) cc `@ywxt`

Fixes https://github.com/rust-lang/rust/issues/144940
2025-08-08 12:52:57 +10:00
..
back Auto merge of #144562 - matthiaskrgr:rollup-mlvn7qo, r=matthiaskrgr 2025-07-28 08:50:59 +00:00
builder gpu host code generation 2025-07-18 16:30:42 -07:00
coverageinfo coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
debuginfo Revert "Preserve the .debug_gdb_scripts section" 2025-08-06 18:01:07 +00:00
llvm coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
abi.rs use is_multiple_of instead of manual modulo 2025-07-05 10:55:35 +02:00
allocator.rs Make __rust_alloc_error_handler_should_panic a function 2025-07-03 10:52:21 -07:00
asm.rs emit .att_syntax when global/naked asm use that option 2025-07-09 01:09:55 +02:00
attributes.rs remove rustc_attr_data_structures 2025-07-31 14:19:27 +02:00
base.rs Revert "Preserve the .debug_gdb_scripts section" 2025-08-06 18:01:07 +00:00
builder.rs coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
callee.rs remove rustc_attr_data_structures 2025-07-31 14:19:27 +02:00
common.rs gpu host code generation 2025-07-18 16:30:42 -07:00
consts.rs Prevent name collisions with internal implementation details 2025-08-07 13:41:17 +00:00
context.rs Rollup merge of #142097 - ZuseZ4:offload-host1, r=oli-obk 2025-07-22 00:54:24 +08:00
declare.rs make more builder functions generic 2025-07-18 16:23:54 -07:00
errors.rs Use the object crate rather than LLVM for extracting bitcode sections 2025-07-25 11:21:28 +00:00
intrinsic.rs Unify LLVM ctlz/cttz intrinsic generation 2025-07-25 17:56:10 +02:00
lib.rs Remove support for -Zcombine-cgu 2025-07-26 13:52:24 +00:00
llvm_util.rs Rollup merge of #138689 - jedbrown:jed/nvptx-target-feature, r=ZuseZ4 2025-08-07 20:49:36 +10:00
mono_item.rs Rollup merge of #143293 - folkertdev:naked-function-kcfi, r=compiler-errors 2025-07-18 04:27:51 +02:00
type_.rs Eliminate all direct uses of LLVMMDStringInContext2 2025-07-14 08:27:08 +00:00
type_of.rs rename BackendRepr::Vector → SimdVector 2025-02-28 17:17:45 +01:00
va_arg.rs Auto merge of #143182 - xdoardo:more-addrspace, r=workingjubilee 2025-07-07 17:28:14 +00:00
value.rs Add warn(unreachable_pub) to rustc_codegen_llvm. 2024-08-16 08:46:57 +10:00