[U-Boot] Question regarding MLO size
Tom Rini
trini at konsulko.com
Tue Apr 21 21:23:05 CEST 2015
On Tue, Apr 21, 2015 at 11:56:05AM -0700, Arun Bharadwaj wrote:
> Hi all,
>
> I am using a Gumstix Overo (omap3), running the u-boot v2015.04 and have
> the following issue:
>
> I have made a few modifications to the misc_init_r() routine in the
> board/overo/overo.c file; the resulting MLO file is 61,220 bytes and the
> console hangs at "reading u-boot.img" during the boot process. In the
> absence of those changes to the misc_init_r() the MLO size is 61,212 bytes
> and the u-boot is loaded without any issues.
>
> misc_init_r() is not even called from any SPL related code, so I am not
> sure why changes to this routine is causing MLO size to change. I verified
> this by doing the following: I put a few debug statements in misc_init_r()
> and rebuilt both u-boot.img and MLO. First, I replaced only the new MLO in
> my target and the debug statement did not appear while it appeared when I
> replaced the u-boot.img in the target.
>
> If anybody has an idea what is going on, it would be very helpful. Thanks!
You're running into https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303
which is that even if the function is being garbage collected the
strings are not. Sadly it may make sense to move some SPL-only
functions out into a file that is only built/linked for SPL due to this
bug.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150421/89b83d30/attachment.sig>
More information about the U-Boot
mailing list