Module Name: src
Committed By: christos
Date: Sun Jan 25 20:06:46 UTC 2015
Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/tsan: tsan_rtl_amd64.S
Log Message:
fix for PIC code.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S
diff -u src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S:1.1.1.1 src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S:1.2
--- src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S:1.1.1.1 Sat Mar 1 03:41:18 2014
+++ src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S Sun Jan 25 15:06:46 2015
@@ -40,7 +40,11 @@ __tsan_trace_switch_thunk:
shr $4, %rsp # clear 4 lsb, align to 16
shl $4, %rsp
+#ifdef __PIC__
+ call __tsan_trace_switch@PLT
+#else
call __tsan_trace_switch
+#endif
# Unalign stack frame back.
mov %rbx, %rsp # restore the original rsp
@@ -119,7 +123,11 @@ __tsan_report_race_thunk:
shr $4, %rsp # clear 4 lsb, align to 16
shl $4, %rsp
+#ifdef __PIC__
+ call __tsan_report_race@PLT
+#else
call __tsan_report_race
+#endif
# Unalign stack frame back.
mov %rbx, %rsp # restore the original rsp