This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GCC cross compiler builds

Hi Experts,

During the compilation of Linux kernel is the GCC toolchain is differently build for user space code, glibc code and Kernel space code ?

If yes why it is build so ?

Regards,

Techguyz

Parents
  • If you want to cross compile Linux apps you need to use a variant of GCC using libraries targeted at the Linux ABI

    i.e. from this page: Linaro Releases you would be using something like arm-linux-gnueabihf  rather than the bare-metal targeted arm-none-eabi

    You can actually build the kernel with either GCC variant, because it's self contained and doesn't reply on any GCC libs.

Reply
  • If you want to cross compile Linux apps you need to use a variant of GCC using libraries targeted at the Linux ABI

    i.e. from this page: Linaro Releases you would be using something like arm-linux-gnueabihf  rather than the bare-metal targeted arm-none-eabi

    You can actually build the kernel with either GCC variant, because it's self contained and doesn't reply on any GCC libs.

Children
No data