<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>while compiling febootstrap-2.11 from centos for arm i came across a arm compile problem and i believe i have the "fix" for it.</div>
<div>&nbsp;</div>
<div>I had to&nbsp;change the helper <STRONG>elf-default-arch</STRONG> script to the following to support armv5tel in the compile.</div>
<div>&nbsp;</div>
<div>-------------------------------------------</div>
<div>&nbsp;case $(uname -m) in<BR>&nbsp;&nbsp;&nbsp;&nbsp; i[3456]86) echo "elf32-i386 i386" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp; x86_64) echo "elf64-x86-64 i386" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp; s390) echo "elf32-s390 s390:31-bit" ;;<BR>&nbsp; &nbsp;&nbsp; s390x) echo "elf64-s390 s390:31-bit" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp; ppc) echo "elf32-powerpc powerpc" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp; ppc64) echo "elf64-powerpc powerpc" ;;<BR>+&nbsp;&nbsp;&nbsp; armv5tel) echo "elf32-littlearm arm" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp; *)<BR>-------------------------------------------</div>
<div>&nbsp;</div>
<div>this causes objcopy to complete correctly using the following:</div>
<div>objcopy -I binary -B arm -O elf32-littlearm init ext2init.o</div>
<div>&nbsp;</div>
<div>which during the first run where i hit the error it didnt sense the correct settings and performed the following.</div>
<div>objcopy -I binary -B architecture -O This init ext2init.o<BR>objcopy: architecture architecture unknown</div>
<div>&nbsp;</div>
<div>from objcopy --help i derived the information from the following cut and paste from the help text.</div>
<div>objcopy: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex<BR></div>
<div>Do i do the correct thing seting here?</div>
<div>&nbsp;</div>
<div>the item seems to now compile correctly with the following patch which can probably be used for fedora as well..I noticed that koji failed on this item. Also be aware that you may need to add a armv7 into the file as well.</div>
<div>&nbsp;</div>
<div>diff -cr a/helper/elf-default-arch b/helper/elf-default-arch&nbsp; <BR>*** a/helper/elf-default-arch&nbsp;&nbsp; Sat Nov&nbsp; 6 07:11:00 2010<BR>--- b/helper/elf-default-arch&nbsp;&nbsp; Sat Oct 22 00:17:15 2011<BR>***************<BR>*** 26,31 ****<BR>--- 26,32 ----<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s390x) echo "elf64-s390 s390:31-bit" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ppc) echo "elf32-powerpc powerpc" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ppc64) echo "elf64-powerpc powerpc" ;;<BR>+&nbsp;&nbsp;&nbsp;&nbsp; armv5tel) echo "elf32-littlearm arm" ;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "This architecture is not recognized.&nbsp; Please update helper/elf-default-arch."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit 1<BR></div>
<div>&nbsp;</div>
<div>&nbsp;</div></span></body></html>