Buildroot BUG
IGOR LURI
iluri at fagorautomation.es
Mon Sep 12 06:50:47 UTC 2005
Building Buildroot with binutils version 2.14.90.0.8 and GCC 3.4.3,
I can build u-boot correctly, and it works. But I can´t boot a Linux kernel
compiled with this gcc, when Linux is booting it crashes with a segmentation fault.
However, if I use gcc 2.95.4 and binutils 2.12.1 to build it, it boots correctly.
I want to use gcc version 3.x . What version of binutils and gcc should I use to build u-boot and Linux kernel properly?
- Igor
-----Mensaje original-----
De: Chris Elliott [SMTP:chris.p.elliott at gmail.com]
Enviado el: viernes, 02 de septiembre de 2005 14:23
Para: uclibc at uclibc.org; IGOR LURI
Asunto: Buildroot BUG
> I think I have found a bug in the uclibc buildroot system.
>
> I have an Icecube (powerpc 5200) evaluation board and I have built
> buildroot with different versions of GCC, 3.3.6, 3.4.3, 3.4.4 and
> 4.0.0, and with thouse versions I can´t link properly u-boot, it seems
> that GCC doesn´t understand linker scripts well. The following lines
> shows a few linker scripts sections:
>
> .....
>
This is actually a bug in the u-boot linker scripts. I haven't
submitted a fix, since every target has its own linker script. I don't
have the fix in front of me, but here's what I remember. If the
compiler has sections that aren't mentioned in the linker script, the
data can go between "__u_boot_cmd_start = .;" and
".u_boot_cmd:{*(.u_boot_cmd)}".
Looking at u-boot.map, I noticed 2 new sections that were getting put in
that space. I was using gcc 3.4.3 for PPC built with buildroot. Anyway
all I had to do was to add the 2 sections above with the others.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20050912/3f2d887b/attachment-0001.htm
More information about the uClibc
mailing list