linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@armlinux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: Build failure with verify size in next-20171102
Date: Thu, 2 Nov 2017 23:20:39 +0000	[thread overview]
Message-ID: <20171102232038.GA28231@n2100.armlinux.org.uk> (raw)
In-Reply-To: <20171102193027.GB28152@atomide.com>

On Thu, Nov 02, 2017 at 12:30:27PM -0700, Tony Lindgren wrote:
> Hi Russeell,
> 
> I think you're already aware of the build failure caused by commit
> 078c0927485e ("ARM: verify size of zImage"), but here's info just
> in case.
> 
> arm-unknown-linux-musleabi-ld.bfd: error: zImage file size is incorrect
> make[2]: *** [arch/arm/boot/compressed/Makefile:185: arch/arm/boot/compressed/vmlinux] Error 1
> make[1]: *** [arch/arm/boot/Makefile:64: arch/arm/boot/compressed/vmlinux] Error 2
> make: *** [arch/arm/Makefile:335: zImage] Error 2
> 
> Other than that I was surprised that next actually booted for me
> after a few week break with Linux next! :)

It would be nice if people can investigate why that happens - I'm
completely unable to reproduce it locally, even if I link using 
the same vmlinux.lds file and the objects from someone who sees the
failure.

There's some binutils version specific stuff that's going on here.

What I have in my current for-next, which I'm intending to push,
is all the same patches except the patch that introduces the above
check is subsituted by a patch that produces an extra _edata_real
symbol.  This _should_ match _edata.  So, if you hit this failure,
try either my current for-next branch or tomorrow's linux-next, and
run arm-linux-nm on arch/arm/boot/compressed/vmlinux and check the
addresses given for _edata and _edata_real.

Theory says they should be identical, but the failure of that assert
could only happen if "." inside the output section was different from
_edata assigned outside.  _edata_real is now the address of "." inside
the output section.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up

  reply	other threads:[~2017-11-02 23:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-02 19:30 Build failure with verify size in next-20171102 Tony Lindgren
2017-11-02 23:20 ` Russell King - ARM Linux [this message]
2017-11-02 23:43   ` Tony Lindgren
2017-11-03  0:04     ` Russell King - ARM Linux
2017-11-03  0:14       ` Russell King - ARM Linux
2017-11-03  8:22         ` Ard Biesheuvel
2017-11-03  9:12           ` Russell King - ARM Linux

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=20171102232038.GA28231@n2100.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).