[U-Boot-Users] maybe just one more bug left in building the examples directory in 1.1.2

Jörn Engel joern at wohnheim.fh-wedel.de
Wed Mar 8 12:26:03 CET 2006


On Tue, 15 November 2005 12:38:50 +0100, Wolfgang Denk wrote:
> in message <6a7ac2300511150252w60601196qea018696ae5d1813 at 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




More information about the U-Boot mailing list