Skip to content

Flush executables to disk after linkage #48545

Closed
@liranringel

Description

@liranringel

I read that: https://randomascii.wordpress.com/2018/02/25/compiler-bug-linker-bug-windows-kernel-bug/amp/
The author suggests to ensure that the binary is flushed to disk after linkage.
We could use File::sync_all which eventually calls FlushFileBuffers here:

fn exec_linker(sess: &Session, cmd: &mut Command, tmpdir: &Path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions