This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]