mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-24 21:02:01 +00:00
Exporting `__rust_alloc_error_handler_should_panic` multiple times causes ld.gold to balk with: `error: version script assignment of to symbol __rust_alloc_error_handler_should_panic failed: symbol not defined` Specifically this breaks builds on DragonFly and YoctoProject with ld.gold. Builds with ld.bfd should be unaffected.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.