Hey! So I'm working on a C++ executable that statically links to a Rust library. When building for my development platform, it works fine. But when I build it for Nintendo Switch, it throws this error:
note: aarch64-none-elf-gcc: error: unrecognized command-line option '--script'
GCC doesn't seem to support "--script" specifically as an option. But when I looked at the Rust source code, it seems to pass "--script" regardless of the linker. (https://github.com/rust-lang/rust/blob/644e8068cbffef6428d1970fe50a4a863079ee54/compiler/rustc_codegen_ssa/src/back/link.rs#L1799)
I'm very hesitant to point fingers at Rust for this, because I'm not yet super fluent in Rust and I also expect this code has been thoroughly tested throughout the years. But honestly I'm just confused. Any help would be appreciated!