softprops / lambda-rust

🐳 🦀 a dockerized lambda build env for rust applications
MIT License
162 stars 76 forks source link

investigate `objcopy: xxxx: debuglink section already exists` in build output #41

Open softprops opened 5 years ago

softprops commented 5 years ago

this seems to be an artifact of https://github.com/softprops/lambda-rust/pull/39. It's unclear if its actually harmful but it is a it off putting. Let's see if we can't figure out what it makes and address

patstew commented 1 year ago

Ended up here trying to fix my own issue. FWIW it means the debuglink hasn't been added. It seems lld sometimes takes a debuglink from the system runtime which prevents the one you want from being added. You can fix it by adding --remove-section=.gnu_debuglink before the --add-gnu-debuglink=....