[Driver] Support compiler-rt crtbegin.o/crtend.o for Linux
authorPetr Hosek <phosek@chromium.org>
Tue, 30 Apr 2019 19:35:14 +0000 (19:35 +0000)
committerPetr Hosek <phosek@chromium.org>
Tue, 30 Apr 2019 19:35:14 +0000 (19:35 +0000)
commitb4989294c8199814ad04e83e6fd703772b8f78cb
tree99702c5d7af5352ad3b3a3ac5dd42f3fd4c14929
parent3b5b9d0e72ae18a6e7e61058b8b5ffd69952c5f7
[Driver] Support compiler-rt crtbegin.o/crtend.o for Linux

When compiler-rt is selected as the runtime library for Linux targets
use its crtbegin.o/crtend.o implemenetation rather than platform one
if available.

Differential Revision: https://reviews.llvm.org/D59264

llvm-svn: 359603
clang/lib/Driver/ToolChains/Gnu.cpp
clang/test/Driver/Inputs/resource_dir/lib/linux/clang_rt.crtbegin-i386.o [new file with mode: 0644]
clang/test/Driver/Inputs/resource_dir/lib/linux/clang_rt.crtbegin-x86_64.o [new file with mode: 0644]
clang/test/Driver/Inputs/resource_dir/lib/linux/clang_rt.crtend-i386.o [new file with mode: 0644]
clang/test/Driver/Inputs/resource_dir/lib/linux/clang_rt.crtend-x86_64.o [new file with mode: 0644]
clang/test/Driver/linux-ld.c