afonso360 opened PR #5619 from crt-initializers
to main
:
This changes the default section type to be
ReadOnlyDataWithRel
instead 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
SectionKind
makes 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: Nov 22 2024 at 16:03 UTC