diff options
author | Andre Heider <a.heider@gmail.com> | 2023-02-03 13:15:43 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-03-21 18:28:23 +0100 |
commit | aef8bab9d71d85dcb6d99ff70078be3f2bdfbf61 (patch) | |
tree | 8579f2e4d0d4829c9670e390ba63a48deb3ffcb5 /config | |
parent | 07730ff3465d3cede3026cdd1c17453930f055ce (diff) | |
download | openwrt-aef8bab9d71d85dcb6d99ff70078be3f2bdfbf61.tar.gz openwrt-aef8bab9d71d85dcb6d99ff70078be3f2bdfbf61.tar.bz2 openwrt-aef8bab9d71d85dcb6d99ff70078be3f2bdfbf61.zip |
build: add a config knob to enable gc-sections for all packages
This enables the linker's garbage collection for all packages which haven't
opted-out.
Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/Config-build.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/Config-build.in b/config/Config-build.in index 8c81ef654c..f93ad37586 100644 --- a/config/Config-build.in +++ b/config/Config-build.in @@ -144,6 +144,14 @@ menu "Global build settings" help Adds -g3 to the CFLAGS. + config USE_GC_SECTIONS + bool + prompt "Dead code and data elimination for all packages (EXPERIMENTAL)" + help + Places functions and data items into its own sections to use the linker's + garbage collection capabilites. + Packages can choose to opt-out via setting PKG_BUILD_FLAGS:=no-gc-sections + config IPV6 def_bool y |