afonso360 opened PR #5619 from crt-initializers to main:
This changes the default section type to be
ReadOnlyDataWithRelinstead ofData.On COFF the CRT initializers do not run unless their section is read only. (See: https://github.com/bjorn3/rustc_codegen_cranelift/issues/1249#issuecomment-1382431789)
The new
SectionKindmakes these sections read only for COFF and MachO, but leaves it as Writable as required by ELF.cc: @bjorn3
afonso360 updated PR #5619 from crt-initializers to main.
afonso360 updated PR #5619 from crt-initializers to main.
afonso360 updated PR #5619 from crt-initializers to main.
afonso360 updated PR #5619 from crt-initializers to main.
afonso360 updated PR #5619 from crt-initializers to main.
jameysharp submitted PR review.
afonso360 updated PR #5619 from crt-initializers to main.
afonso360 has enabled auto merge for PR #5619.
afonso360 merged PR #5619.
Last updated: Dec 06 2025 at 06:05 UTC