https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672
--- Comment #13 from Hanke Zhang <hkzhang455 at gmail dot com> --- (In reply to Andrew Pinski from comment #12) > (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. Thanks a lot. The _FORTIFY_SOURCE maybe the problem then.