arm - Why is a GCC cross compile not building `crti.o`? -


In an attempt to create a GCC 4.xx cross compiler for the hand, I lost crti $ BUILD_DIR / File in the subdirectory of gcc .

Is saying as a logic with the "crti.o" . I'm assuming that if the cross linking ld is being called, then native /usr/lib/crti.o is not required.

I can see that there are many potential sources for a Kritti object in GCC source tree (in which $ SRC_DIR / gcc / config / arm / crti.asm ).

How can I configure GCC build to insure this file (left with the ld command)?

Here is my configurable line:

  /x-tools/build/gcc-4.5.0$ ../../ Src / gcc-4.5.0 / configure --target = arm -linux --prefix = / opt / arm-tools --disable-threads --enable-languages ​​= c  

The real answer is that it should compile crti.o If someone had to make a hand-elf target In creating an arm-linux target, GCC people believe that glibc has already been compiled and This crti.o startup is perfectly appropriate, if you are upgrading

a new root Creating file systems is another story, a conflicting one (which first comes glibc or gcc on it?). One approach (supported, but I have not yet succeeded) is to say a single gcc ( arm-alf \ stable) to say again glibc , Then gcc again

It seems that some people crti.o are unavailable modfiying gcc \ config \ arm \ t-linux Target by. Instead of relying on an unexisting glibc , there is a clause to use the arm-elf version of crti.o . An example can be found

  --- gcc -3.4.4 / gcc / config / hand / t linux 2003/09/20 17:. 09: 07.000000000 -0400 +++ GCC -3.4.4.works/gcc/config/arm/t-linux 2005-05-25 20: 44: 07.000000000 -0400 @@-18,3 +18,24 @ @ # LIBGCC = stmp-multilib # INSTALL_LIBGCC = install -multilib + + EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o + + # EXTRA_MULTILIB_PARTS above is not defined EXTRA_PARTS defined, then here ## EXTRA_PARTS = crtbegin O crtend.o crti.o crtn.o + + libgcc = Stmp-multilib + INSTALL_LIBGCC = install-multilib + # Collect startup files + $ (t) creo: $ (srcdir) /config/arm/crti.asm $ (GCC_PASSES) + $ (GCC_FOR_TARGET) $ (GCC_CFLAGS) $ (MULTILIB_CFLAGS) $ (included) \ + -c -o $ (t) crti.o -x assembler-k-cpp $ (srcdir) / config / arm / Crti.asm + $ (t) crtn.o: $ (srcdir) /config/arm/crtn.asm $ (GCC_PASS ES) + $ (GCC_FOR_TARGET) $ (GCC_CFLAGS) $ (MULTILIB_CFLAGS) $ (included) \ + -c -o $ (t) crtn.o -x assembler-cum-CPP $ (srcdir) / config / arm / crtn. Disable asm + + # Libc link + SHLIB_LC =  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -