How about add two new configuration options(-ffunction-sections -fdata-sections)

Bin Cheng bin.cheng@arm.com
Mon Feb 20 04:02:00 GMT 2012


Hi,
Now in newlib there are cases where different functions are implemented in
one c source file.
So how about adding two configuration options like
"--enable-function-sections"/"-fdata-sections"
which builds newlib with "-ffunction-sections" and "-fdata-sections"
options.
With this, we can cut binary size with link's option "--gc-sections".

Now in gcc, libgcc/libstdc++ are built with this options defaultly for cross
compiling.
Should we enable this in Newlib?

So what's your opinion on this?

Thanks.





More information about the Newlib mailing list