https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93966
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |9.3
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Isn't this a linker bug? There's no code sections in the debug object.
Also you need to provide -fcf-protection at compile-time as well, not
only at link-time (technically only at compile-time). Otherwise success
is not guaranteed.
I'm not aware why it should work with GCC 8 btw.