From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752741AbdJ3QMa (ORCPT ); Mon, 30 Oct 2017 12:12:30 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:59064 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752590AbdJ3QM2 (ORCPT ); Mon, 30 Oct 2017 12:12:28 -0400 Date: Mon, 30 Oct 2017 16:12:08 +0000 From: Russell King - ARM Linux To: Gregory CLEMENT Cc: Arnd Bergmann , Ard Biesheuvel , Romain Izard , Sven Schmidt <4sschmid@informatik.uni-hamburg.de>, LKML , linux-arm-kernel@lists.infradead.org, Petr Cvek , Aaro Koskinen , Andrea Adami , Robert Jarzmik Subject: Re: [PATCH] ARM: add a private asm/unaligned.h Message-ID: <20171030161207.GS20805@n2100.armlinux.org.uk> References: <20171020200231.1355569-1-arnd@arndb.de> <87wp3g39es.fsf@free-electrons.com> <20171027152743.GJ20805@n2100.armlinux.org.uk> <87k1zc3fxp.fsf@free-electrons.com> <20171030154855.GO20805@n2100.armlinux.org.uk> <87bmko1v6f.fsf@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bmko1v6f.fsf@free-electrons.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 30, 2017 at 05:01:44PM +0100, Gregory CLEMENT wrote: > Hi Russell King, > > On lun., oct. 30 2017, Russell King - ARM Linux wrote: > > > On Mon, Oct 30, 2017 at 02:48:02PM +0100, Gregory CLEMENT wrote: > >> Hi Russell, > >> > >> So I tested the branch fixes in your git tree. > >> > >> After doing a "make multi_v7_defconfig; make zImage", I got the message > >> "arm-linux-gnueabi-ld: error: zImage file size is incorrect" you added > >> in the commit "ARM: verify size of zImage". > >> > >> It is the same with mvebu_v7_defconfig, so I wonder wich with > >> configuration this patch was tested ? > > > > I heard a similar report from Olof when his autobuilder produced 100% > > failure. I tried one of the same defconfig's that Olof tried here, > > and didn't see the failure. It passes my build tests here, and it > > also passes kernelci's build tests too. > > > > So, I _think_ it's got something to do with the toolchain versions > > being used, but at the moment I'm just guessing. I've no real idea, > > because I've no idea what's causing the failure at the moment. > > > > Olof said that he'd send me one of the build trees, but I'm still > > waiting. > > > > What I need is a tarball of the objects from arch/arm/boot/compressed > > to work out what's going on - when grabbing that, it may be a good > > I've just attached this tarball to this email. It might be rejected by > the mailing list, but as you are also in the "To" field you should > receive it. > > Actually the archive is the full content of arch/arm/boot/compressed > from my build directory and I removed vmlinux and all the piggy files to > have a small archive. > > If they are also needed then I can provide an url for it. Thanks. Unfortunately, I can't reproduce the issue using your objects and my linker. If I modify your vmlinux.lds to add the assert in, and then link using: $ arm-linux-ld -o vmlinux -T vmlinux.lds *.o --defsym _kernel_bss_size=0 \ --defsym input_data_end=0 --defsym input_data=0 Then it links successfully. If I objcopy that: $ arm-linux-objcopy -O binary -R .comment -S vmlinux zImage $ vdir zImage -rwxrwxr-x 1 rmk rmk 27784 Oct 30 16:10 zImage $ arm-linux-nm vmlinux |grep _edata 00006c88 D _edata $ echo $((0x6c88)) 27784 So it all looks sane here. So my hunch is that whatever's going wrong, it's going wrong at the final link, which means I need the vmlinux as generated by your toolchain. -- 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