Index: build/common.gypi |
=================================================================== |
--- build/common.gypi (revision 13358) |
+++ build/common.gypi (working copy) |
@@ -228,6 +228,13 @@ |
'Release': { |
'cflags': [ |
'-O2', |
+ # Don't emit the GCC version ident directives, they just end up |
+ # in the .comment section taking up binary size. |
+ '-fno-ident', |
+ # Put data and code in their own sections, so that unused symbols |
+ # can be removed at link time with --gc-sections. |
+ '-fdata-sections', |
+ '-ffunction-sections', |
], |
}, |
}, |