[TSan] Add tsan-force-options, tsan-runtime-env. 77/156677/5
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Thu, 19 Oct 2017 09:25:31 +0000 (12:25 +0300)
committerDenis Khalikov <d.khalikov@partner.samsung.com>
Wed, 29 Nov 2017 11:05:40 +0000 (14:05 +0300)
commit418b35106a806b6a36981ab40ea462da1cb42463
tree03ace66772735c2416bdc238c560826f9fa67c3f
parent26b48e00e944c1f23dc3e34fa06db89763d916df
[TSan] Add tsan-force-options, tsan-runtime-env.

For this moment tsan-runtime-env works without
preloading libtsan, because of huge memory consumption
by libtsan, at least 1:4. So, adding libtsan to ld.so.preload
will require a huge VM space available, because libtsan
has interceptors for allocators as well as libasan.

In this case I see only one way to enable TSan for DSO:

Build an executable with TSan, which requires DSO we want
to execute. In this case compiler will add section .preinit with
TSan initialization and rltd will call this section early than .init
section for other DSO.

Change-Id: I0cccb8c447287731a7c2b9f09f84a4a490d52d22
packaging/TSAN_OPTIONS [new file with mode: 0644]
packaging/gcc-contrib.spec