Received: from eggs.gnu.org ([2001:4830:134:3::10]:50936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwqYq-0003Q9-B7 for qemu-devel@nongnu.org; Wed, 19 Oct 2016 09:05:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwqYm-0006Tt-Uq for qemu-devel@nongnu.org; Wed, 19 Oct 2016 09:05:36 -0400 Received: from indium.canonical.com ([91.189.90.7]:45261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwqYm-0006Tg-PH for qemu-devel@nongnu.org; Wed, 19 Oct 2016 09:05:32 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bwqYl-0008Ih-Mp for ; Wed, 19 Oct 2016 13:05:31 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 9D9DD2E80C2 for ; Wed, 19 Oct 2016 13:05:31 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 19 Oct 2016 12:46:57 -0000 From: Roman Reply-To: Bug 1429841 <1429841@bugs.launchpad.net> Sender: bounces@canonical.com References: <20150309124810.20969.37090.malonedeb@gac.canonical.com> Message-Id: <20161019124657.29441.14569.malone@chaenomeles.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1429841] Re: error "rom: requested regions overlap" for NOLOAD sections List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Retest with qemu 2.7.0: issue still occours Same fix works for me: removed 'return -1;' in function rom_check_and_regis= ter_reset() (line 1030 of file hw/core/loader.c) ** Tags added: qemu -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1429841 Title: error "rom: requested regions overlap" for NOLOAD sections Status in QEMU: New Bug description: command line: qemu-system-arm -semihosting -nographic -monitor null -serial null -no-re= boot -kernel build/fw/0HNFcomSLuP1_CUNIT.elf output: rom: requested regions overlap (rom phdr #6: build/fw/0HNFcomSLuP1_CUNIT.= elf. free=3D0x8001effc, addr=3D0x8001c000) rom loading failed I checked the sections of the .elf file with arm-none-eabi-objdump -h: Sections: Idx Name Size VMA LMA File off Algn ... 35 .marker_appli 00001000 801ae000 801ae000 00025000 2**0 ALLOC 36 .safe_data 00000014 80200000 8001b000 00020000 2**2 CONTENTS, ALLOC, LOAD, DATA 37 .safe_bss 00000488 80200020 8001b020 00020014 2**2 ALLOC 38 .marker_safe_data 00001000 80201000 8001c000 00029000 2**0 ALLOC 39 .data 000008cc 80202000 8001b600 00022000 2**3 CONTENTS, ALLOC, LOAD, DATA 40 .bss 0000312c 802028d0 8001bed0 000228cc 2**3 ALLOC 41 .marker_data 00001000 80206000 8001f600 00026000 2**0 ALLOC 42 .cunit 00010000 80300000 80119600 00028000 2**0 ALLOC 43 .marker_code 00001000 8001c000 8001c000 00024000 2**0 ALLOC ... So I had a look where the values in the error message could come from: 0x8001c000: is the "LMA" value of section .marker_safe_data 0x8001effc: is "Size" + "LMA" of the .bss section (0x0000312c + 0x8001bed= 0) So it is correct that (regarding the "LMA" value) the .marker_safe_data s= ection collides with .bss section. But actually these sections have no "LOAD" attribute, so I would guess th= at their "LMA" should not be used anyway. Those section should reside at their "VMA" addresses (0x802xxxxx) during = runtime but they have no data to load. Or am I getting something completely wrong? Should I give an additional option to qemu? I got this error with 2.0.0+dfsg-2ubuntu1.10 and 1.0.50-2012.03-0ubuntu2.1 I didn't get this error (but others) with 0.10.2 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1429841/+subscriptions