softprops / lambda-rust

🐳 🦀 a dockerized lambda build env for rust applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

softprops opened this issue · comments

this seems to be an artifact of #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

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=....