Skip to content

Load weak dll imports on Windows #1707

Closed
@m-ou-se

Description

@m-ou-se

On Windows, some syscalls (e.g. WakeOnAddress) are loaded from an .CRT$XCU section, which doesn't get executed on Miri.

See rust-lang/rust#81478 (comment)

This means the standard library falls back to not using those, which is okay for now, but is a problem when implementing WakeOnAddress, as that mechanism falls back to another dynamic dll import which will also not have been loaded in miri.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-shimsArea: This affects the external function shimsA-windowsArea: affects only Windows targetsC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions