[U-Boot-Users] compile u-boot with recent toolchain : symbols problem

Cedric VINCENT cedric.vincent at gmail.com
Thu May 26 15:23:57 CEST 2005


Hello,

I used to compile U-Boot with ELDK, but I currently need to work with
newer toolchain :
 - binutils-2.16
 - gcc-3.4.3

The "__u_boot_cmd_start" symbol value, generated with this new
toolchain, is wrong (U-Boot crashes when relocating the command
table).
There are two new sections between "__u_boot_cmd_start" and
".u_boot_cmd" address :
 - .data.rel.local
 - .data.rel

I don't know what these (new) sections are, but the problem can be
solved in "u-boot.lds" :
-   __u_boot_cmd_start = .;
    .u_boot_cmd : { *(.u_boot_cmd) }
    __u_boot_cmd_end = .;
+  __u_boot_cmd_start = ADDR(.u_boot_cmd);

Best regards, Cedric VINCENT.




More information about the U-Boot mailing list