[llvm-commits] [compiler-rt] r168589 - in /compiler-rt/trunk/lib/tsan/rtl: tsan_rtl.h tsan_rtl_amd64.S
Dmitry Vyukov
dvyukov at google.com
Mon Nov 26 06:20:26 PST 2012
Author: dvyukov
Date: Mon Nov 26 08:20:26 2012
New Revision: 168589
URL: http://llvm.org/viewvc/llvm-project?rev=168589&view=rev
Log:
tsan: explicitly mark symbols referenced from assembly as hidden
this allows to build tsan runtime as dynamic library
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_amd64.S
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h?rev=168589&r1=168588&r2=168589&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h Mon Nov 26 08:20:26 2012
@@ -523,6 +523,7 @@
#define HACKY_CALL(f) \
__asm__ __volatile__("sub $1024, %%rsp;" \
"/*.cfi_adjust_cfa_offset 1024;*/" \
+ ".hidden " #f "_thunk;" \
"call " #f "_thunk;" \
"add $1024, %%rsp;" \
"/*.cfi_adjust_cfa_offset -1024;*/" \
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_amd64.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_amd64.S?rev=168589&r1=168588&r2=168589&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_amd64.S (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_amd64.S Mon Nov 26 08:20:26 2012
@@ -1,5 +1,6 @@
.section .text
+.hidden __tsan_trace_switch
.globl __tsan_trace_switch_thunk
__tsan_trace_switch_thunk:
.cfi_startproc
@@ -79,6 +80,7 @@
ret
.cfi_endproc
+.hidden __tsan_report_race
.globl __tsan_report_race_thunk
__tsan_report_race_thunk:
.cfi_startproc
More information about the llvm-commits
mailing list