Why do I need a Cross Compiler?: Difference between revisions

m
Improve section description
[unchecked revision][unchecked revision]
mNo edit summary
m (Improve section description)
Line 17:
Perhaps you have not been using a [[GCC_Cross-Compiler|cross-compiler]] until now, in which case you are likely doing a lot of things wrong. Unfortunately, a lot of kernel tutorials suggest passing certain options and doing things in a manner that potentially causes a lot of trouble. This section documents some of the things you should watch out for. Please read this section carefully and point others to it if you see them using troublesome options.
 
== Linking with your compiler rather than ld ==
You shouldn't be invoking ld directly. Your cross-compiler is able to work as a linker and it does a lot of really nice stuff to your object files before calling ld itself. If you get weird errors during compilation, use your cross-compiler for linking and it may go away. If you do need ld, be sure to use the cross-linker (i586-elf-ld) rather than the system linker.
 
Anonymous user