https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81400
--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #8) > I don't think we should be adding -lssp automatically. > -mstack-protector-guard= > is meant mainly for kernel or special purpose libraries, libssp.a we build > in gcc is just one of the many possible implementations of the > _FORTIFY_SOURCE etc. stuff, only if the C library doesn't provide that. The > same stuff can come from many other spots, C libraries, kernel, ... As mentioned above, I'm not expert in this area. If you believe it should not be added automatically then please close this PR as invalid. Thanks.