From 14896a2600f99ddb86d7c100ec8e57557c013438 Mon Sep 17 00:00:00 2001 From: Alastair D'Silva Date: Sat, 24 Dec 2016 01:26:05 +1100 Subject: Support building Newlib with Link Time Optimisation Signed-off-by: Alastair D'Silva --- config/libc/newlib.in.2 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'config/libc') diff --git a/config/libc/newlib.in.2 b/config/libc/newlib.in.2 index 64630b03..927cce89 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" -- cgit v1.2.3