* Is there a way to distinguish binary files compiled with -D_FORTIFY_SOURCE=1 and -D_FORTIFY_SOURCE=2?
@ 2021-04-09 0:12 Peng Yu
2021-04-09 17:17 ` Carlos O'Donell
0 siblings, 1 reply; 2+ messages in thread
From: Peng Yu @ 2021-04-09 0:12 UTC (permalink / raw)
To: libc-help
https://gcc.gnu.org/legacy-ml/gcc-patches/2004-09/msg02055.html
When I compile a .c file with -D_FORTIFY_SOURCE=1 and
-D_FORTIFY_SOURCE=2, the binary files both contain symbols like
..._chk@...
So I can not tell whether _FORTIFY_SOURCE is 1 or 2 just by whether
symbols have ..._chk@....
Is there a way to tell the difference only from the binary file?
--
Regards,
Peng
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-09 17:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 0:12 Is there a way to distinguish binary files compiled with -D_FORTIFY_SOURCE=1 and -D_FORTIFY_SOURCE=2? Peng Yu
2021-04-09 17:17 ` Carlos O'Donell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).