public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Is it possible to enable data sections and function sections without explicitly giving flags "-fdata-sections" and "-ffunction-sections"?
@ 2023-03-19 12:38 3119369616.qq
  2023-03-19 13:18 ` Arsen Arsenović
  2023-03-19 18:15 ` David Brown
  0 siblings, 2 replies; 3+ messages in thread
From: 3119369616.qq @ 2023-03-19 12:38 UTC (permalink / raw)
  To: gcc

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

To divide functions into sections and then remove unused sections, I must provide flags "-fdata-sections" and "-ffunction-sections" in GCC and a flag "--gc-sections" in LD. Most of the build systems don't support these flags so GCC will generate bigger binaries.
Is it possible to enable this feature without  giving any command line flags manually?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-19 18:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-19 12:38 Is it possible to enable data sections and function sections without explicitly giving flags "-fdata-sections" and "-ffunction-sections"? 3119369616.qq
2023-03-19 13:18 ` Arsen Arsenović
2023-03-19 18:15 ` David Brown

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