japaric / cargo-call-stack

Whole program static stack analysis
Apache License 2.0
560 stars 50 forks source link

error: Did not find ELF magic number #100

Open EdmundsEcho opened 1 year ago

EdmundsEcho commented 1 year ago

Great idea for a tool. A welcome addition.

I'm on a mac M1, with the target set accordingly. I tried to run a small app that failed. This may be just an FYI given the nightly changes etc.. but wanted to share nonetheless.

v1.72.0-nightly

fn main() {
    let hello_world = HelloWorld {
        message: Message::HelloWorld,
    };
    println!("{:#?}", hello_world)
}
> cargo +nightly call-stack --bin fun > cg.got
error: Did not find ELF magic number

The lto is set to 'fat', the target is set in my cargo config...