This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
cdb76c77ac
rust
/
tests
/
run-make
/
windows-safeseh
/
bar.rs
2 lines
13 B
Rust
Raw
Normal View
History
Unescape
Escape
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.
2023-10-23 21:59:36 -05:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink