From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932573AbdJ3Q73 (ORCPT ); Mon, 30 Oct 2017 12:59:29 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:59670 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932356AbdJ3Q72 (ORCPT ); Mon, 30 Oct 2017 12:59:28 -0400 Date: Mon, 30 Oct 2017 16:59:07 +0000 From: Russell King - ARM Linux To: Ard Biesheuvel Cc: Gregory CLEMENT , Arnd Bergmann , Aaro Koskinen , Petr Cvek , LKML , Andrea Adami , Romain Izard , Sven Schmidt <4sschmid@informatik.uni-hamburg.de>, Robert Jarzmik , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH] ARM: add a private asm/unaligned.h Message-ID: <20171030165907.GB27404@n2100.armlinux.org.uk> References: <87wp3g39es.fsf@free-electrons.com> <20171027152743.GJ20805@n2100.armlinux.org.uk> <87k1zc3fxp.fsf@free-electrons.com> <87a8083cc2.fsf@free-electrons.com> <8760aw3c5p.fsf@free-electrons.com> <871slk3b2k.fsf@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 03:35:38PM +0000, Ard Biesheuvel wrote: > Well, that is disappointing. This means the ASSERT() does not work > reliably, and we're back to using a bunch of shell scripts to check > whether _edata appears at the end of the image. That didn't work too well here. While it did correctly detect some instances: zImage size (8008200) disagrees with linked size (8008192) it also misdetected others: zImage size (13348808) disagrees with linked size (-928003328) It seems to suggest that _magic_end - _magic_start = 0xc8afcb00. zImage size is 0xcbafc8. That points at the addresses output by "nm" being dependent on the endian-ness of the image, which to me seems utterly insane. I wouldn't be surprised if that is toolchain version dependent as well. IMHO, our toolchain is a mess! -- 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