Commit 4cebfa82 authored by deanm@chromium.org's avatar deanm@chromium.org

Put code and data pieces in their own sections.

This makes --gc-sections perform better, as the GC operates on whole sections.  This makes a worthwhile binary size decrease in the Chromium Linux build.

Review URL: http://codereview.chromium.org/18803


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1164 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 0d11b588
......@@ -52,7 +52,7 @@ LIBRARY_FLAGS = {
'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG']
},
'mode:release': {
'CCFLAGS': ['-O3', '-fomit-frame-pointer']
'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', '-ffunction-sections']
},
'os:freebsd': {
'LIBS': ['execinfo']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment