Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: [PATCH] Give --gc-sections to the linker

[PATCH] Give --gc-sections to the linker

From: Rafaël Carré <funman_at_videolan.org>
Date: Sat, 3 Dec 2011 18:22:34 -0500

It fixes binsize increase after 93b6ca91696109be904448d23763f41b64bd7b8c^W r31127

That flag is used already for android, bootbox, codecs, chessbox, goban,
imageviewer, lua, pictureflow, rockboy, zxbox, overlays

Tested on Clip Zip
---
 tools/configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/configure b/tools/configure
index 80c6380..6117f4f 100755
--- a/tools/configure
+++ b/tools/configure
_at__at_ -9,7 +9,7 _at__at_
 #
 
 # global CC options for all platforms
-CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99"
+CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99 -Wl,--gc-sections"
 
 # global LD options for all platforms
 GLOBAL_LDOPTS=""
-- 
1.7.7.3
Received on 2011-12-04

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy