[PATCH] D28791: [compiler-rt][crt] Simple crtbegin and crtend implementation
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 16 18:32:40 PST 2017
phosek created this revision.
Herald added subscribers: mgorny, dberris.
Clang relies on existence of symbols that are normally provided by crtbegin.o/crtend.o. However, LLVM does not currently provide implementation of these files, instead relying on either libgcc or implementations provided as part of the system.
This patch provides a trivial implementation of crtbegin.o/crtend.o which at the moment does not support .ctors/.dtors, but it can be still used on systems which use .init/.fini arrays such as Linux. The support for .ctors/.dtors can be added in the future if necessary.
Repository:
rL LLVM
https://reviews.llvm.org/D28791
Files:
cmake/config-ix.cmake
lib/CMakeLists.txt
lib/crt/CMakeLists.txt
lib/crt/crtbegin.c
lib/crt/crtend.c
test/CMakeLists.txt
test/crt/CMakeLists.txt
test/crt/dso_handle.cpp
test/crt/lit.cfg
test/crt/lit.site.cfg.in
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28791.84620.patch
Type: text/x-patch
Size: 8968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170117/51822d19/attachment.bin>
More information about the llvm-commits
mailing list