error compiling U-boot-1.1.4 R_ARM_PLT32 __div0
Hello.
I want to compile U-boot-1.1.4 with toolchine arm-linux-gcc-3.4.1 and i have a error
...
common/libcommon.a(flash.o)(.text 0x150): In function `addr2info':/usr/src/u-boot-1.1.4/common/flash.c:122: undefined reference to `flash_info'
common/libcommon.a(flash.o)(.text 0x2a8): In function `flash_write':/usr/src/u-boot-1.1.4/common/flash.c:177: undefined reference to `write_buff'
lib_arm/libarm.a(_umodsi3.o)(.text 0xa8):/usr/src/u-boot-1.1.4/lib_arm/_umodsi3. S:79: relocation truncated to fit: R_ARM_PLT32 __div0 /opt/3.4.1/bin/../lib/gcc/arm-linux/3.4.1/libgcc.a(_divsi3.oS)(.text 0x11c):/wor k/crosstool-0.27/build/arm-linux/gcc-3.4.1-glibc-2.3.2/gcc-3.4.1/gcc/config/arm/ lib1funcs.asm:735: relocation truncated to fit: R_ARM_PLT32 __div0 /opt/3.4.1/bin/../lib/gcc/arm-linux/3.4.1/libgcc.a(_modsi3.oS)(.text 0xd8):/work /crosstool-0.27/build/arm-linux/gcc-3.4.1-glibc-2.3.2/gcc-3.4.1/gcc/config/arm/l ib1funcs.asm:795: relocation truncated to fit: R_ARM_PLT32 __div0
make: *** [u-boot] Błąd 1
What can i do with this?
I found a patch for binutils for u-boot-1.1.2 like that
%u2014%u2014%u2014%u2014%u2014%u2014%u2014- from CodeSourcery %u2014%u2014%u2014%u2014%u2014%u2014%u2014%u2014%u2014%u2014
%u2014 bfd/elf32-arm.h.orig 2004-04-22 22:11:15.000000000 -0400
bfd/elf32-arm.h 2004-04-22 22:28:37.000000000 -0400
@@ -2229,6 2229,8 elf32_arm_relocate_section (output_bfd, case R_ARM_PC24:
case R_ARM_ABS32:
case R_ARM_THM_PC22:
case R_ARM_PLT32:
if (info->shared
&& (
(!info->symbolic && h->dynindx != -1)
@@ -2262,11 2264,6 elf32_arm_relocate_section (output_bfd,
relocation = 0;
break;
- case R_ARM_PLT32:
- if (h->plt.offset != (bfd_vma)-1)
- relocation = 0;
- break;
-
default:
if (unresolved_reloc)_bfd_error_handler
%u2014%u2014%u2014%u2014%u2014%u2014%u2014%u2014%u2014%u2014%u2014%u2014%u2013 end patch %u2014%u2014%u2014%u2014%u2014%u2014%u2014- I don't know if it's good, and I don't know how to use it.
Somebody help me?
Regards, Michał Szabat
----------------------------------------------------------------------
Kliknij po wiecej! >>> http://link.interia.pl/f18ed