From: Wolfgang Denk Date: Tue, 17 Aug 2010 20:54:29 +0200 Subject: [U-Boot] [PATCH 3/7] Add support for SRAM Boot In-Reply-To: <20100817131904.5703f08e@schlenkerla.am.freescale.net> References: <1281945897.24612.17.camel@localhost.localdomain> <20100816102356.D6E081606A5@gemini.denx.de> <1282024011.2814.61.camel@localhost.localdomain> <20100817092000.911FD157D71@gemini.denx.de> <20100817131904.5703f08e@schlenkerla.am.freescale.net> Message-ID: <20100817185429.3C33C157D71@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Scott Wood, In message <20100817131904.5703f08e@schlenkerla.am.freescale.net> you wrote: > > ...but "take this entire subsystem as is" or "go without anything > vaguely resembling this code, lest it be called 'duplication'" is a > rather limiting pair of choices. It seems reasonable to refactor > things to be more modular (possibly in a nicer way than sprinkling > ifdefs), or provide an alternate trimmed-down implementation. Agreed. Factoring out functions that can then be selected on Makefile level is probably OK. > One thing that should probably be tried first, though, is > -ffunction-sections and --gc-sections, to have the linker discard any > functions that aren't referenced. It seems some arches/boards already > use this. I guess that should help here a lot, too. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A day without sunshine is like night.