summaryrefslogtreecommitdiff
path: root/config/libc/newlib.in.2
diff options
context:
space:
mode:
authorAlastair D'Silva <alastair@d-silva.org>2016-12-23 14:26:05 (GMT)
committerAlastair D'Silva <alastair@d-silva.org>2017-01-09 23:51:32 (GMT)
commit14896a2600f99ddb86d7c100ec8e57557c013438 (patch)
tree941ba5f4e19c5475754fce22348fb5a73cbbb294 /config/libc/newlib.in.2
parent2ac39621bcb8fa205029591d3e6c67d66080e001 (diff)
Support building Newlib with Link Time Optimisation
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Diffstat (limited to 'config/libc/newlib.in.2')
-rw-r--r--config/libc/newlib.in.29
1 files changed, 9 insertions, 0 deletions
diff --git a/config/libc/newlib.in.2 b/config/libc/newlib.in.2
index 64630b0..927cce8 100644
--- a/config/libc/newlib.in.2
+++ b/config/libc/newlib.in.2
@@ -137,6 +137,15 @@ config LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE
This will compile newlib with -Os.
+config LIBC_NEWLIB_LTO
+ bool
+ prompt "Enable Link Time Optimization"
+ help
+ Builds the libraries with -flto to enable more aggressive link time
+ optimization. You will need to add -flto-partition=one to your
+ application's link line to keep the RETURN assembler macro together
+ with it's consumers.
+
config LIBC_NEWLIB_NANO_MALLOC
bool
prompt "Enable Nano Malloc"