diff options
author | Alex Shlyapnikov <alekseys@google.com> | 2017-12-22 18:04:20 +0000 |
---|---|---|
committer | Alex Shlyapnikov <alekseys@google.com> | 2017-12-22 18:04:20 +0000 |
commit | f547c96d9f4bfb1ca9a0cf7bef31b978de58cbe9 (patch) | |
tree | bdc66597f7822051826053394f8a89d836cf4a1e /llvm/lib/Target/XCore/XCoreTargetMachine.h | |
parent | 471adf7fdc6ec837f098daf6547b4a9077f5560b (diff) | |
download | bcm5719-llvm-f547c96d9f4bfb1ca9a0cf7bef31b978de58cbe9.tar.gz bcm5719-llvm-f547c96d9f4bfb1ca9a0cf7bef31b978de58cbe9.zip |
[Sanitizers, CMake] Basic sanitizer Solaris support (PR 33274)
Summary:
This patch, on top of https://reviews.llvm.org/D40898, contains the build system
changes necessary to enable the Solaris/x86 sanitizer port.
The only issue of note is the libclang_rt.sancov_{begin, end} libraries: clang relies on the
linker automatically defining __start_SECNAME and __stop_SECNAME labels for
sections whose names are valid C identifiers. This is a GNU ld extension not present
in the ELF gABI, also implemented by gold and lld, but not by Solaris ld. To work around
this, I automatically link the sancov_{begin,end} libraries into every executable for now.
There seems to be now way to build individual startup objects like crtbegin.o/crtend.o,
so I've followed the lead of libclang_rt.asan-preinit which also contains just a single
object.
Reviewers: kcc, alekseyshl
Reviewed By: alekseyshl
Subscribers: srhines, kubamracek, mgorny, fedor.sergeev, llvm-commits, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D40899
llvm-svn: 321373
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreTargetMachine.h')
0 files changed, 0 insertions, 0 deletions