Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261815AbUJYNlZ (ORCPT ); Mon, 25 Oct 2004 09:41:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261814AbUJYNkB (ORCPT ); Mon, 25 Oct 2004 09:40:01 -0400 Received: from mail.timesys.com ([65.117.135.102]:29035 "EHLO exchange.timesys.com") by vger.kernel.org with ESMTP id S261804AbUJYNhE (ORCPT ); Mon, 25 Oct 2004 09:37:04 -0400 Message-ID: <417D0131.2060704@timesys.com> Date: Mon, 25 Oct 2004 09:35:45 -0400 From: john cooper User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: remi.colinet@free.fr CC: Ingo Molnar , Lee Revell , gene.heskett@verizon.net, linux-kernel@vger.kernel.org, Rui Nuno Capela , Mark_H_Johnson@raytheon.com, "K.R. Foley" , Bill Huey , Adam Heath , Florian Schmidt , Thomas Gleixner , Michal Schmidt , Fernando Pablo Lopez-Lezcano , Alexander Batyrshin , john.cooper@timesys.com Subject: Re: [patch] Real-Time Preemption, -RT-2.6.9-mm1-U10.2 References: <20041014234202.GA26207@elte.hu> <20041022155048.GA16240@elte.hu> <20041022175633.GA1864@elte.hu> <200410221749.35306.gene.heskett@verizon.net> <1098482764.20495.2.camel@krustophenia.net> <20041023103620.GG30270@elte.hu> <417C49C6.1090300@timesys.com> <1098698969.417cd0d96dbde@imp2-q.free.fr> In-Reply-To: <1098698969.417cd0d96dbde@imp2-q.free.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Oct 2004 13:31:46.0453 (UTC) FILETIME=[F95A6C50:01C4BA96] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org remi.colinet@free.fr wrote: >Hi, > > >>I'm seeing an odd build error in the -U10.3 patch to 2.6.9-mm1: >> >> >> >> AS arch/i386/boot/compressed/head.o >> CC arch/i386/boot/compressed/misc.o >> OBJCOPY arch/i386/boot/compressed/vmlinux.bin >>BFD: Warning: Writing section `.bss' to huge (ie negative) file offset >>0xc03ac000. >>objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated >>make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1 >>make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2 >>make: *** [bzImage] Error 2 >> >>[root@otaku linux-2.6.9]# objdump -f vmlinux >> >>vmlinux: file format elf32-i386 >>architecture: i386, flags 0x00000112: >>EXEC_P, HAS_SYMS, D_PAGED >>start address 0x00100000 >> >>This appears a result of changes in: >> >> arch/i386/kernel/vmlinux.lds.S >> >>apparently for support of CONFIG_KERN_PHYS_OFFSET. >>This causes the kernel LMA start address to >>change from 0xc0100000 to 0x100000 and objcopy to >>gag. I rolled back to a 2.6.9-mm1 version of the >>above linker map file and did get the kernel to >>build and boot. >> >>Anyone else seeing this? .config attached. >> > >Yes. > >You probably need to upgrade your binutil package. The .bss LMA start address >section is not dealt the way it should by ld. > >An other (bad) way to work around this compile problem is to force the .bss LMA >start address with the following OBJCOPYFLAGS at objcopy time. > >OBJCOPYFLAGS := -O binary --change-section-lma .bss-0xc0000000 -R .note -R >.comment -S > >Hope this help, >Remi > Already tried a recent (2.15) version of objcopy with the same results. But LD was the issue. BTW the offending version of binutils was 2.13. Thanks! -- john.cooper@timesys.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/