mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Barebox List <barebox@lists.infradead.org>
Subject: Re: [PATCH] ARM: socfpga: generate smaller images when multiple boards are selected
Date: Mon, 19 Nov 2018 09:30:21 +0100	[thread overview]
Message-ID: <73wop95v1e.fsf@pengutronix.de> (raw)
In-Reply-To: <20181116143127.13875-1-s.hauer@pengutronix.de>


Sascha Hauer <s.hauer@pengutronix.de> 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 <s.hauer@pengutronix.de>

\o/

Tested-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>


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

  reply	other threads:[~2018-11-19  8:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-16 14:31 Sascha Hauer
2018-11-19  8:30 ` Steffen Trumtrar [this message]
2018-11-23  8:49 ` Masahiro Yamada
2018-11-26  9:46   ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=73wop95v1e.fsf@pengutronix.de \
    --to=s.trumtrar@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox