Bugzilla – Bug 1142911
LTO: kicad build fails due to undefined reference to toplevel assembly function
Last modified: 2020-12-30 10:02:32 UTC
Kicads libcontext.cpp contains toplevel assembly, which fails to link:
PLD Linux has a patch to replace the toplevel assembly with a "naked" function:
To me, using a naked function appears better than disabling LTO for the generated object file.
Can you comment on the patch from PLD linux?
Yes, I welcome the usage of naked functions.
cleaning up... since kicad is currently building this should be fixed.