https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672
--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Hanke Zhang from comment #11) > But I have never seen this '_FORTIFY_SOURCE' before. So I'm a confused as > well. And when I try gcc@11.4 built in the default ubuntu 22.04, it's the > same. So I don't know how to describe now. Thanks for your help anyway. Well Ubuntu's compiler defaults to defining _FORTIFY_SOURCE while the upstream GCC does not. Ubuntu's compiler also defaults to building PIE applications too.