SyntaxFix
Write A Post
Hire A Developer
Questions
If this thread is to be believed, you need to supply the -ffunction-sections and -fdata-sections to gcc, which will put each function and data object in its own section. Then you give and --gc-sections to GNU ld to remove the unused sections.
-ffunction-sections
-fdata-sections
--gc-sections