public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Is there a way to distinguish binary files compiled with -D_FORTIFY_SOURCE=1 and -D_FORTIFY_SOURCE=2
@ 2021-04-08  3:28 Peng Yu
  2021-04-08 22:54 ` Martin Sebor
  2021-04-12 11:58 ` Jeff Law
  0 siblings, 2 replies; 3+ messages in thread
From: Peng Yu @ 2021-04-08  3:28 UTC (permalink / raw)
  To: gcc-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] 3+ messages in thread

end of thread, other threads:[~2021-04-12 11:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08  3:28 Is there a way to distinguish binary files compiled with -D_FORTIFY_SOURCE=1 and -D_FORTIFY_SOURCE=2 Peng Yu
2021-04-08 22:54 ` Martin Sebor
2021-04-12 11:58 ` Jeff Law

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).