Skip to content

Some global symbols cannot be used #585

Open
@antoyo

Description

@antoyo

Because we use -fasm=intel, we cannot use some symbols like byte.

For instance, the following code:

#[no_mangle]
pub fn byte() {
    println!("Byte");
}

will cause the following error:

/tmp/libgccjit-Wnkc4D/fake.s: Assembler messages:
/tmp/libgccjit-Wnkc4D/fake.s: Error: .size expression for byte does not evaluate to a constant

See these:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglibgccjitrequires a change in libgccjit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions