All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/5] microblaze: Move architecture to use generic board init
Date: Tue, 3 Feb 2015 17:33:49 -0700	[thread overview]
Message-ID: <CAPnjgZ2Lp3RBNCg-ub-GRhCjQusPkxo0L-YLZ+fz=1My5y9r=Q@mail.gmail.com> (raw)
In-Reply-To: <5b23014e28dd44508ca7169a7608fdb1@BN1BFFO11FD007.protection.gbl>

Hi Michal,

On 3 February 2015 at 02:26, Michal Simek <michal.simek@xilinx.com> wrote:
> Hi Simon,
>
> On 02/03/2015 12:58 AM, Simon Glass wrote:
>> Hi Michal,
>>
>> On 2 February 2015 at 08:46, Michal Simek <michal.simek@xilinx.com> wrote:
>>> Compile code with -fPIC to get GOT. Do not build SPL
>>> with fPIC because it increasing SPL size for nothing.
>>>
>>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>>> ---
>>>
>>> Changes in v2:
>>> - Use dram_init instead of init_func_ram()
>>>   Suggested by Simon
>>>
>>> This code requires
>>> "common/board_r: manual relocation for cmd table"
>>> http://lists.denx.de/pipermail/u-boot/2015-January/201965.html
>>>
>>> Not fully happy about it because compare to previous solution adds
>>> almost +60k on size for doing the same thing as before.
>>>
>>> 15: microblaze: Move architecture to use generic board init
>>> microblaze: (for 1/1 boards)  all +52268.0  bss -4.0  data +11724.0
>>> rodata -2676.0  spl/u-boot-spl:all +36.0  spl/u-boot-spl:data +36.0
>>> text +43224.0
>>>             microblaze-generic:  all +52268  bss -4  data +11724  rodata
>>> -2676  spl/u-boot-spl:all +36  spl/u-boot-spl:data +36  text +43224
>>>
>>> Depends on:
>>> http://lists.denx.de/pipermail/u-boot/2015-January/203277.html
>>
>> Yes that seems crazy.
>>
>> You can use -B to see what code is added. Can you figure it out?
>
> I was checking this with our toolchain guy and expectation with fPIC/fPIE
> is 20% bigger code and I am below that.
>
> I was checking -B output too and it is adding bytes to every function
> that's why the sum is that big.

OK, that's unfortunate but sounds like it is a feature of the
architecture, so nothing wrong with U-Boot per se.

Regards,
Simon

      reply	other threads:[~2015-02-04  0:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-02 15:46 [U-Boot] [PATCH v2 1/5] microblaze: Move architecture to use generic board init Michal Simek
2015-02-02 15:46 ` [U-Boot] [PATCH v2 2/5] microblaze: Speedup code copy Michal Simek
2015-02-02 15:46 ` [U-Boot] [PATCH v2 3/5] bdinfo: Show information about fdt blob via bdinfo Michal Simek
2015-02-02 15:46 ` [U-Boot] [PATCH v2 4/5] microblaze: Do not use CONFIG_SYS_GENERIC_GLOBAL_DATA Michal Simek
2015-02-02 15:46 ` [U-Boot] [PATCH v2 5/5] microblaze: Add support for CONFIG_SYS_MALLOC_F_LEN Michal Simek
2015-02-02 23:58 ` [U-Boot] [PATCH v2 1/5] microblaze: Move architecture to use generic board init Simon Glass
2015-02-03  9:26   ` Michal Simek
2015-02-04  0:33     ` Simon Glass [this message]

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='CAPnjgZ2Lp3RBNCg-ub-GRhCjQusPkxo0L-YLZ+fz=1My5y9r=Q@mail.gmail.com' \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.