Skip to content

force-unwind-tables has no effect on windows #85582

Description

@stevemk14ebr

Hello, i'm building a no_std rust driver for windows and the unwind tables are not being generated in release mode. This is a large issue for be because i'm interacting with a kernel interfaces that requires the unwind_table entry for a specific function. Here is the issue in detail: rust-lang/backtrace-rs#397 (comment)

I'd expect that even though i've set the panic=abort mode that unwind tables are generated, and especially with the force-unwind-tables flag set to yes. I only need a specific function to have an unwind entry, so perhaps a #[unwind_entry] function attribute could make sense to introduce? The panic behavior should be separate from what binary tables are generated, they are separate concerns...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-panicArea: Panicking machineryC-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleO-windows-msvcToolchain: MSVC, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions