From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Manning Date: Wed, 16 May 2012 10:07:59 +1200 Subject: [U-Boot] [PATCH] Add gc-section support for ARM In-Reply-To: <201205150112.06666.vapier@gentoo.org> References: <1336009071-23704-1-git-send-email-cdhmanning@gmail.com> <201205150901.30710.manningc2@actrix.gen.nz> <201205150112.06666.vapier@gentoo.org> Message-ID: <201205161007.59560.manningc2@actrix.gen.nz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 15 May 2012 17:12:05 Mike Frysinger wrote: > On Monday 14 May 2012 17:01:30 Charles Manning wrote: > > On Monday 14 May 2012 17:15:50 Mike Frysinger wrote: > > > On Wednesday 02 May 2012 21:37:51 Charles Manning wrote: > > > > Seems odd that this hasn't been done yet. > > > > Shaves 5k off an omap overo build. > > > > > > my understanding is that it doesn't work for some > > > > It won't work for people that don't set up their lds properly. > > current u-boot policy is to not introduce changes that knowingly break > other platforms. so if you want to update the common arm config.mk, you > need to at least compile test all arm boards. Doesn't that makes it an impossible task? Not having all the boards makes it pretty hard to test them all. > > > > > +PLATFORM_RELFLAGS += -ffunction-sections > > > > > > where's the -fdata-sections ? > > > > I tried that once before and could not get that to work with u-boot. I > > figure doing just the function sections is better than nothing. > > so even your lds isn't setup properly ? :P Correct. I was aiming to achieve a certain size. Once I achieved that I stopped fiddling. The problem was probably in the relocation stuff. > > other arches are using both fine, so it isn't a problem of common code. I might be incorrect, but I have noticed what appears to be some differences between different versions of binutils. -- CHarles