From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOex2-0007cG-Dz for barebox@lists.infradead.org; Mon, 19 Nov 2018 08:30:38 +0000 References: <20181116143127.13875-1-s.hauer@pengutronix.de> From: Steffen Trumtrar In-reply-to: <20181116143127.13875-1-s.hauer@pengutronix.de> Date: Mon, 19 Nov 2018 09:30:21 +0100 Message-ID: <73wop95v1e.fsf@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] ARM: socfpga: generate smaller images when multiple boards are selected To: Sascha Hauer Cc: Barebox List Sascha Hauer writes: > The socfpga xload images are limited to 64KiB. This doesn't fit > if > multiple boards are selected. The reason is that we include huge > C files and arrays in the early init code which get compiled > once > for each board. -ffunction-sections is without effect here since > all > functions have the same name and hence we get the same function > multiple times in the same section. > > To overcome this we surround all function names with a SECT() > macro which > is used to add a board specific prefix to the section names. > This way > -ffunction-sections can now do its work and discard unused > functions. > > Signed-off-by: Sascha Hauer \o/ Tested-by: Steffen Trumtrar Thanks, Steffen -- Pengutronix e.K. | Steffen Trumtrar | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany| Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555| _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox