• Kevin Hao's avatar
    arm64: kill off the libgcc dependency · d67703a8
    Kevin Hao authored
    The arm64 kernel builds fine without the libgcc. Actually it should not
    be used at all in the kernel. The following are the reasons indicated
    by Russell King:
    
      Although libgcc is part of the compiler, libgcc is built with the
      expectation that it will be running in userland - it expects to link
      to a libc.  That's why you can't build libgcc without having the glibc
      headers around.
    
      [...]
    
      Meanwhile, having the kernel build the compiler support functions that
      it needs ensures that (a) we know what compiler support functions are
      being used, (b) we know the implementation of those support functions
      are sane for use in the kernel, (c) we can build them with appropriate
      compiler flags for best performance, and (d) we remove an unnecessary
      dependency on the build toolchain.
    Signed-off-by: default avatarKevin Hao <haokexin@gmail.com>
    Acked-by: default avatarWill Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    d67703a8
Makefile 2.64 KB