Skip to content

Unable to omit unwind tables from binary when using ReleaseSmall + LLVM  #21942

@ghost

Description

Zig Version

0.14.0-dev.2164+6b2c8fc68

Steps to Reproduce and Observed Behavior

$ cat x.zig
pub fn main() void {}
$ zig build-exe x.zig -fno-unwind-tables -OReleaseSmall
error: <inline asm>:1:3: this directive must appear between .cfi_startproc and .cfi_endproc directives
         .cfi_undefined %rip
         ^

$

Expected Behavior

Successful compilation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-x86_6464-bit x86bugObserved behavior contradicts documented or intended behaviorstandard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions