From: =?iso-8859-1?Q?J=F6rn?= Engel Date: Wed, 8 Mar 2006 12:26:03 +0100 Subject: [U-Boot-Users] maybe just one more bug left in building the examples directory in 1.1.2 In-Reply-To: <20051115113850.6A15F352568@atlas.denx.de> References: <6a7ac2300511150252w60601196qea018696ae5d1813@mail.gmail.com> <20051115113850.6A15F352568@atlas.denx.de> Message-ID: <20060308112603.GA1116@wohnheim.fh-wedel.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 15 November 2005 12:38:50 +0100, Wolfgang Denk wrote: > in message <6a7ac2300511150252w60601196qea018696ae5d1813@mail.gmail.com> you wrote: > > "the last bug" ??? Famous last words. There's always one "last bug" left. ;) > > complains about __got2_entries. I found this defined in our board > .... > > ppc-linux-ld: BFD 2.15.90.0.1.1 20040303 (SuSE Linux) assertion fail > > ../../bfd/elf32-ppc.c:5645 > > make[1]: *** [hello_world] Segmentation fault > > Your tool crashes with a segmentation fault. That's a tolchain > problem. Get yourself working tools and forget about all this > trouble. Not entirely a toolchain problem. Here is a patch that fixes the problem, if the toolchain happens to include the SuSE gcc 3.3.3 "Hammer" compiler. Patch is against git tree on kernel.org. --- uboot_hammer/examples/stubs.c~hammer 2006-03-08 12:10:07.000000000 +0100 +++ uboot_hammer/examples/stubs.c 2006-03-08 12:17:06.000000000 +0100 @@ -136,7 +136,7 @@ gd_t *global_data; * implementation. On the other hand, asm() statements with * arguments can be used only inside the functions (gcc limitation) */ -#if GCC_VERSION < 3004 +#if GCC_VERSION < 3003 static #endif /* GCC_VERSION */ void __attribute__((unused)) dummy(void) This patch is clearly unacceptable, as it breaks real gcc 3.3 compilers. But it would still be nice to have some sort of workaround for the SuSE-created problem. J?rn -- "Error protection by error detection and correction." -- from a university class