rust-lld errors with duplicate symbol: __rustc_debug_gdb_scripts_section__ for embeded target. #52909
Labels
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-embedded
Working group: Embedded systems
Hi,
I'm using
cargo xbuild
to compile & link my code to a embedded target. @phil-opp the maintainer of cargo xbuild believes that this is a rust-ldd issue beginning with the second comment.In short beginning with at least nightly-2018-03-06 I started getting linking error with the signature
note: rust-lld: error: duplicate symbol: __rustc_debug_gdb_scripts_section_
My code is currently a private gitlab repo (I'd be happy to add anyone who needs access) but this issue has also been seen with https://github.com/toothbrush7777777/uefi-app-x64.
I've been working around this by adding the
--release
flag; but I'm at a point where I'd like to add gdb support.Target Triple
Version Info
The text was updated successfully, but these errors were encountered: