Don't defer to the GCC driver for linking arm-baremetal
authorJonathan Roelofs <jonathan@codesourcery.com>
Thu, 25 May 2017 15:42:13 +0000 (15:42 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Thu, 25 May 2017 15:42:13 +0000 (15:42 +0000)
commit901c776d068aad3fbb4f2499b0c14ad3855412ca
tree0521bf382acc3815ad50789d6dfd0955ee986530
parente6617e47d20ce5b76b5fb3646d70303bba7fccfc
Don't defer to the GCC driver for linking arm-baremetal

Also comes with a cmake cache for building the runtime bits:

 $ cmake <normal cmake flags> \
   -DBAREMETAL_ARMV6M_SYSROOT=/path/to/sysroot \
   -DBAREMETAL_ARMV7M_SYSROOT=/path/to/sysroot \
   -DBAREMETAL_ARMV7EM_SYSROOT=/path/to/sysroot \
   -C /path/to/clang/cmake/caches/BaremetalARM.cmake \
   /path/to/llvm

https://reviews.llvm.org/D33259

llvm-svn: 303873
12 files changed:
clang/cmake/caches/BaremetalARM.cmake [new file with mode: 0644]
clang/lib/Driver/CMakeLists.txt
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/BareMetal.cpp [new file with mode: 0644]
clang/lib/Driver/ToolChains/BareMetal.h [new file with mode: 0644]
clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/Linux.cpp
clang/test/Driver/Inputs/baremetal_arm/include/c++/5.0.0/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/baremetal_arm/include/c++/6.0.0/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/baremetal_arm/include/c++/v1/.keep [new file with mode: 0644]
clang/test/Driver/baremetal.cpp [new file with mode: 0644]
clang/test/Frontend/gnu-mcount.c