Skip to content

-nostartfiles not found #154

@DasLixou

Description

@DasLixou

I'm doing something wrong but don't know what. I'm trying to replicate tiny-hello example but get this error:

error: linking with `rust-lld` failed: exit status: 1
  = note: rust-lld: error: unknown argument '-nostartfiles'

When I remove the

println!("cargo:rustc-link-arg=-nostartfiles");

from the build.rs, the resulting binary has no .text section at all.

I'm compiling with nightly and use origin = { version = "0.24.0", default-features = false, features = ["origin-start", "nightly"] }.

Thanks for your help :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions