about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-26 04:04:50 +0000
committerbors <bors@rust-lang.org>2023-10-26 04:04:50 +0000
commitccb160d3432dff025ab62696a82e576bf08aa006 (patch)
tree33e503f7f442b06b04a855e50125b43b4a0be9b6 /compiler/rustc_codegen_gcc
parent6d674af86191239e9c866341f3aeea035090dc93 (diff)
parent8fa800db61a78a6b7467ac2867ff20fc717a00be (diff)
downloadrust-ccb160d3432dff025ab62696a82e576bf08aa006.tar.gz
rust-ccb160d3432dff025ab62696a82e576bf08aa006.zip
Auto merge of #117115 - zetafunction:linking, r=bjorn3
Mark .rmeta files as /SAFESEH on x86 Windows.

Chrome links .rlibs with /WHOLEARCHIVE or -Wl,--whole-archive to prevent the linker from discarding static initializers. This works well, except on Windows x86, where lld complains:

  error: /safeseh: lib.rmeta is not compatible with SEH

The fix is simply to mark the .rmeta as SAFESEH aware. This is trivially true, since the metadata file does not contain any executable code.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions